Fix PHPStan error

This commit is contained in:
brufdev
2025-02-24 20:45:50 +00:00
parent 3d0a2ca729
commit c1a8b92acb

View File

@@ -34,6 +34,7 @@ final class TreeView extends Component
if ($target->exists) {
// Ignore if $target is the same as $source or if it is a child of $source
// @phpstan-ignore-next-line larastan.noUnnecessaryCollectionCall
if ($target->ancestorsAndSelf()->pluck('id')->contains($source->id)) {
return;
}