Skip to content

Commit e45ebc2

Browse files
authored
Removed bad type-hinted object
1 parent 81716d7 commit e45ebc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Helper/EmbeddedListHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,18 @@ public function guessDefaultFilter(string $entityFqcn, string $parentEntityPrope
137137
$relatedItems = PropertyAccess::createPropertyAccessor()->getValue(
138138
$parentEntity, $parentEntityProperty
139139
);
140-
$itemIds = $relatedItems->map(function (object $entity) {
140+
$itemIds = $relatedItems->map(function ($entity) {
141141
$hasGetIdMethod = false;
142142
try {
143143
$reflGetIdMethod = new \ReflectionMethod($entity, 'getId');
144144
$hasGetIdMethod = $reflGetIdMethod->isPublic();
145145
} catch (\ReflectionException $e) {
146146
}
147-
147+
148148
if (!$hasGetIdMethod) {
149149
throw new \RuntimeException('EmbeddedListHelper requires a public getId method on root entity in order to guess filters to apply!');
150150
}
151-
151+
152152
return $entity->getId();
153153
});
154154

0 commit comments

Comments
 (0)