mirror of
https://github.com/brufdev/many-notes.git
synced 2026-01-24 20:09:50 -06:00
Fix PHPStan error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user