mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Re-dump autoloader and composer.lock
This commit is contained in:
@@ -52,7 +52,7 @@ final class AttributeAutoconfigurationPass extends AbstractRecursivePass
|
||||
} elseif ($parameterType instanceof \ReflectionNamedType) {
|
||||
$types[] = $parameterType->getName();
|
||||
} else {
|
||||
throw new LogicException(sprintf('Argument "$%s" of attribute autoconfigurator should have a type, use one or more of "\ReflectionClass|\ReflectionMethod|\ReflectionProperty|\ReflectionParameter|\Reflector" in "%s" on line "%d".', $reflectorParameter->getName(), $callableReflector->getFileName(), $callableReflector->getStartLine()));
|
||||
throw new LogicException(\sprintf('Argument "$%s" of attribute autoconfigurator should have a type, use one or more of "\ReflectionClass|\ReflectionMethod|\ReflectionProperty|\ReflectionParameter|\Reflector" in "%s" on line "%d".', $reflectorParameter->getName(), $callableReflector->getFileName(), $callableReflector->getStartLine()));
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -70,7 +70,7 @@ final class AttributeAutoconfigurationPass extends AbstractRecursivePass
|
||||
continue;
|
||||
}
|
||||
if (!($targets & \constant('Attribute::TARGET_'.strtoupper($symbol)))) {
|
||||
throw new LogicException(sprintf('Invalid type "Reflection%s" on argument "$%s": attribute "%s" cannot target a '.$symbol.' in "%s" on line "%d".', ucfirst($symbol), $reflectorParameter->getName(), $attributeName, $callableReflector->getFileName(), $callableReflector->getStartLine()));
|
||||
throw new LogicException(\sprintf('Invalid type "Reflection%s" on argument "$%s": attribute "%s" cannot target a '.$symbol.' in "%s" on line "%d".', ucfirst($symbol), $reflectorParameter->getName(), $attributeName, $callableReflector->getFileName(), $callableReflector->getStartLine()));
|
||||
}
|
||||
}
|
||||
$this->{$symbol.'AttributeConfigurators'}[$attributeName] = $callable;
|
||||
|
||||
Reference in New Issue
Block a user