We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 750ec00 commit 037f9eeCopy full SHA for 037f9ee
src/Annotations/Assertion.php
@@ -52,6 +52,12 @@ public function __construct(
52
$this->constraint = is_array($constraint) ? $constraint : [$constraint];
53
54
if (null !== $for) {
55
+ trigger_error(
56
+ "Using #[Assertion(for='" . $for . "', constaint='...')] on methods is deprecated in favor " .
57
+ "of #[Assertion(constraint='...')] the parameter itself.",
58
+ E_USER_DEPRECATED,
59
+ );
60
+
61
$this->for = ltrim($for, '$');
62
}
63
0 commit comments