Skip to content

Commit d37eec8

Browse files
committed
Inheritance: Assert type is right
1 parent 6b5eecb commit d37eec8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Utils/InheritanceReferencePropertyDescriptor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function getNonScalarReferencedPropertyDescriptor(): AbstractBeanProperty
3434
if ($this->referencedPropertyDescriptor instanceof InheritanceReferencePropertyDescriptor) {
3535
return $this->referencedPropertyDescriptor->getNonScalarReferencedPropertyDescriptor();
3636
}
37+
assert($this->referencedPropertyDescriptor instanceof ScalarBeanPropertyDescriptor || $this->referencedPropertyDescriptor instanceof ObjectBeanPropertyDescriptor);
3738
return $this->referencedPropertyDescriptor;
3839
}
3940

0 commit comments

Comments
 (0)