Skip to content

Commit 4e2766e

Browse files
committed
Remove useless condition in extractIds method;
1 parent add4f1c commit 4e2766e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Relations/MorphToMany.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,6 @@ private function extractIds(array $data, ?string $relatedPivotKey = null)
401401
return array_reduce($data, function ($carry, $item) use ($relatedPivotKey) {
402402
if (is_array($item) && array_key_exists($relatedPivotKey, $item)) {
403403
$carry[] = $item[$relatedPivotKey];
404-
} elseif (is_string($item) && ! str_contains($item, '\\')) {
405-
$carry[] = $item;
406404
}
407405

408406
return $carry;

0 commit comments

Comments
 (0)