Skip to content

Commit d91d6de

Browse files
committed
fix: ignore static properties in data object
1 parent 3e69a4d commit d91d6de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/support/src/DataObject.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ protected static function resolveDependenciesMap(string $class, array &$visited
237237

238238
$result = [];
239239
foreach ($properties as $property) {
240+
if ($property->isStatic()) {
241+
continue;
242+
}
240243
$propertyType = $property->getType();
241244
$allowsNull = $propertyType->allowsNull();
242245
if ($propertyType instanceof ReflectionUnionType) {

0 commit comments

Comments
 (0)