Skip to content

Commit 9d34f61

Browse files
authored
Fix variable array
1 parent 790abba commit 9d34f61

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Vivait/StringGeneratorBundle/EventListener/GeneratorListener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public function prePersist(LifecycleEventArgs $args)
7272
}
7373
} while (($currentObject = $currentObject->getParentClass()) && (false !== $currentObject));
7474

75-
foreach ($object->getProperties() as $property) {
75+
/** @var \ReflectionProperty[] $property */
76+
foreach ($properties as $property) {
7677
foreach ($this->reader->getPropertyAnnotations($property) as $annotation) {
7778
if ($annotation instanceof GeneratorAnnotation) {
7879

0 commit comments

Comments
 (0)