Skip to content

Commit 949c3c9

Browse files
committed
fix: phpstan issue
1 parent 07112a2 commit 949c3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Laravel/Eloquent/Metadata/IdentifiersExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function getIdentifiersFromItem(object $item, ?Operation $operation = nul
4444

4545
private function getIdentifierValue(object $item, Link $link): mixed
4646
{
47-
if ($item instanceof ($link->getFromClass())) {
47+
if (is_a($item, $link->getFromClass(), true)) {
4848
return $this->getEloquentProperty($item, $link->getIdentifiers()[0]);
4949
}
5050

0 commit comments

Comments
 (0)