We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9494f4a commit df2f23dCopy full SHA for df2f23d
src/Attributes/ThrowOnInvalidProperty.php
@@ -21,9 +21,11 @@
21
#[Attribute(Attribute::TARGET_CLASS)]
22
final class ThrowOnInvalidProperty{
23
24
- public function __construct(
25
- private readonly bool $throwOnInvalid,
26
- ){}
+ private readonly bool $throwOnInvalid;
+
+ public function __construct(bool $throwOnInvalid){
27
+ $this->throwOnInvalid = $throwOnInvalid;
28
+ }
29
30
public function throwOnInvalid():bool{
31
return $this->throwOnInvalid;
0 commit comments