File tree 1 file changed +3
-6
lines changed 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ public function &__get(string $key): mixed //phpcs:ignore
52
52
if ($ returnType ->isSubclassOf (self ::class)) {
53
53
$ value = $ returnType ->newInstance ($ value ->toArray (), $ value ->getTable ());
54
54
}
55
- }/* elseif ($returnType->isSubclassOf(\BackedEnum::class)) {
55
+ } elseif ($ returnType ->isSubclassOf (\BackedEnum::class)) {
56
56
$ value = $ returnType ->getMethod ('tryFrom ' )->invoke ($ returnType , $ value );
57
- }*/
57
+ }
58
58
}
59
59
}
60
60
return $ value ;
@@ -96,10 +96,7 @@ public function getReferencedModel(string $requestedModel): ?self
96
96
throw new CannotAccessModelException ($ requestedModel , $ this );
97
97
}
98
98
99
- /**
100
- * @return static
101
- */
102
- public static function createFromActiveRow (ActiveRow $ row ): self
99
+ public static function createFromActiveRow (ActiveRow $ row ): static
103
100
{
104
101
if ($ row instanceof static) {
105
102
return $ row ;
You can’t perform that action at this time.
0 commit comments