@@ -19,6 +19,7 @@ trait BaseInResource
1919{
2020 protected static function modifyEloquentQuery (Builder $ query ): Builder
2121 {
22+ /** @phpstan-ignore-next-line */
2223 if (method_exists (static ::class, 'addTaxonomyRelationsToQuery ' )) {
2324 $ query = static ::addTaxonomyRelationsToQuery ($ query );
2425 }
@@ -35,10 +36,12 @@ public static function getEloquentQuery(): Builder
3536 $ query ->withoutGlobalScope (SoftDeletingScope::class);
3637 }
3738
39+ /** @phpstan-ignore-next-line */
3840 if (method_exists (static ::class, 'applySoftDeleteQuery ' )) {
3941 $ query = static ::applySoftDeleteQuery ($ query );
4042 }
4143
44+ /** @phpstan-ignore-next-line */
4245 if (($ currentTab = request ()->query ('tab ' )) && method_exists (static ::class, 'applyTabQuery ' )) {
4346 $ query = static ::applyTabQuery ($ query , $ currentTab );
4447 }
@@ -65,10 +68,12 @@ public static function getTableQuery(): Builder
6568 : static ::getModel ()::query ();
6669 }
6770
71+ /** @phpstan-ignore-next-line */
6872 if (method_exists (static ::class, 'applySoftDeleteQuery ' )) {
6973 $ query = static ::applySoftDeleteQuery ($ query );
7074 }
7175
76+ /** @phpstan-ignore-next-line */
7277 if (($ currentTab = request ()->query ('tab ' )) && method_exists (static ::class, 'applyTabQuery ' )) {
7378 $ query = static ::applyTabQuery ($ query , $ currentTab );
7479 }
0 commit comments