Skip to content

Commit dc2f3f3

Browse files
committed
Fix for artisan optimize as a result of a config file having a validation rule
1 parent 996d7bb commit dc2f3f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Rules/HasStructuralObjectClass.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
class HasStructuralObjectClass implements ValidationRule
99
{
10+
// Required for artisan optimize
11+
public static function __set_state(array $array): self
12+
{
13+
return new self;
14+
}
15+
1016
/**
1117
* Run the validation rule.
1218
*

0 commit comments

Comments
 (0)