You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 5.4:
[VarExporter] Suppress deprecations for legacy fixtures
Bump Symfony version to 5.3.8
Update VERSION for 5.3.7
Update CHANGELOG for 5.3.7
Bump Symfony version to 4.4.31
Update VERSION for 4.4.30
Update CONTRIBUTORS for 4.4.30
Update CHANGELOG for 4.4.30
[Form] minor cs fix
[DependencyInjection] Autoconfigurable attributes on methods, properties and parameters
thrownewLogicException(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()));
53
+
}
54
+
55
+
try {
56
+
$attributeReflector = new \ReflectionClass($attributeName);
if (!\in_array('Reflection'.ucfirst($symbol), $types, true)) {
67
+
continue;
68
+
}
69
+
if (!($targets & \constant('Attribute::TARGET_'.strtoupper($symbol)))) {
70
+
thrownewLogicException(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->expectExceptionMessage('Argument "$reflector" of attribute autoconfigurator should have a type, use one or more of "\ReflectionClass|\ReflectionMethod|\ReflectionProperty|\ReflectionParameter|\Reflector" in ');
0 commit comments