The doc comment string|class-string<Factory> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in string|class-string<Factory>.
Loading history...
15
* @throws ConfigurationException
16
*/
17
public function __construct(string $classNameConfig)
The doc comment string|class-string<Factory> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in string|class-string<Factory>.
The doc comment string|class-string<Factory> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in string|class-string<Factory>.
Loading history...
40
*/
41
private function getClassNameFromConfig(string $className): string
42
{
43
if ($className !== 'default') {
44
if (!is_a($className, Factory::class, true)) {
45
throw new ConfigurationException(
46
sprintf('%s does not extend %s', $className, Factory::class)