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
{{ message }}
Repository navigation
Commit 5bd3b33
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/Metadata/Parameter.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ abstract class Parameter
42
42
* @param ?bool $castToNativeType whether API Platform should cast your parameter to the nativeType declared
43
43
* @param ?callable(mixed): mixed $castFn the closure used to cast your parameter, this gets called only when $castToNativeType is set
44
44
* @param ?string $filterClass the class to use when resolving filter properties (from stateOptions)
45
-
* @param list<Operation>|null $operations a list of operations this parameter applies to (if null, applies to all operations)
45
+
* @param list<Operation|class-string<Operation>>|null $operations a list of operations (instances or class names) this parameter applies to (if null, applies to all operations)
$this->expectExceptionMessage(\sprintf('Parameter attribute on property "name" is restricted to the operation "%s" which is not declared on the resource "%s".', Patch::class, ParameterOnPropertiesWithUndeclaredOperationClassString::class));
0 commit comments