Skip to content

Commit fc99cd3

Browse files
scott graysonscott grayson
authored andcommitted
Fix PHPStan baseline - remove non-matching patterns
- Remove env() error pattern (not occurring) - Fix LibraryItem type error pattern to match actual error - Remove non-matching patterns for role, user, getEffectiveAccessControl - PHPStan now passes with zero errors
1 parent b1e9867 commit fc99cd3

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

phpstan-baseline.neon

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -442,29 +442,10 @@ parameters:
442442
path: src/Tables/Columns/PermissionsColumn.php
443443

444444
-
445-
message: "#^Called 'env' outside of the config directory which returns null when the config is cached, use 'config'\\.$#"
446-
count: 1
447-
path: config/filament-library.php
448-
449-
-
450-
message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Collection<int, Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem>\\|Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$type\\.$#"
445+
message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$type\\.$#"
451446
count: 1
452447
path: src/Middleware/RedirectToCorrectEditPage.php
453448

454-
-
455-
message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$role\\.$#"
456-
count: 1
457-
path: src/Models/LibraryItem.php
458-
459-
-
460-
message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$user\\.$#"
461-
count: 1
462-
path: src/Models/LibraryItem.php
463-
464-
-
465-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:getEffectiveAccessControl\\(\\)\\.$#"
466-
count: 1
467-
path: src/Models/LibraryItem.php
468449

469450
-
470451
message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$type\\.$#"

0 commit comments

Comments
 (0)