Skip to content

Commit df2f23d

Browse files
committed
🚿 ok, fine.
1 parent 9494f4a commit df2f23d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Attributes/ThrowOnInvalidProperty.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
#[Attribute(Attribute::TARGET_CLASS)]
2222
final class ThrowOnInvalidProperty{
2323

24-
public function __construct(
25-
private readonly bool $throwOnInvalid,
26-
){}
24+
private readonly bool $throwOnInvalid;
25+
26+
public function __construct(bool $throwOnInvalid){
27+
$this->throwOnInvalid = $throwOnInvalid;
28+
}
2729

2830
public function throwOnInvalid():bool{
2931
return $this->throwOnInvalid;

0 commit comments

Comments
 (0)