From c1a8b92acb5dfa6cfb5b01aa351da0e502b2f0fb Mon Sep 17 00:00:00 2001 From: brufdev Date: Mon, 24 Feb 2025 20:45:50 +0000 Subject: [PATCH] Fix PHPStan error --- app/Livewire/Vault/TreeView.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Livewire/Vault/TreeView.php b/app/Livewire/Vault/TreeView.php index b027f97..34250a0 100644 --- a/app/Livewire/Vault/TreeView.php +++ b/app/Livewire/Vault/TreeView.php @@ -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; }