|
| 1 | +parameters: |
| 2 | + ignoreErrors: |
| 3 | + # Database seeders - App\Models\User is application-specific |
| 4 | + - |
| 5 | + message: "#^Call to static method first\\(\\) on an unknown class App\\\\Models\\\\User\\.$#" |
| 6 | + count: 1 |
| 7 | + path: database/seeders/LibrarySeeder.php |
| 8 | + |
| 9 | + - |
| 10 | + message: "#^Call to static method where\\(\\) on an unknown class App\\\\Models\\\\User\\.$#" |
| 11 | + count: 1 |
| 12 | + path: database/seeders/LibrarySeeder.php |
| 13 | + |
| 14 | + # Config file - env() is allowed in config files |
| 15 | + - |
| 16 | + message: "#^Called 'env' outside of the config directory which returns null when the config is cached, use 'config'\\.$#" |
| 17 | + path: config/filament-library.php |
| 18 | + |
| 19 | + # Forms - User model is dynamic |
| 20 | + - |
| 21 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$name\\.$#" |
| 22 | + count: 1 |
| 23 | + path: src/Forms/Components/UserSearchSelect.php |
| 24 | + |
| 25 | + # Models - Properties are defined via @property annotations but PHPStan needs explicit ignores for some cases |
| 26 | + # These are false positives since properties are documented |
| 27 | + - |
| 28 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$id\\.$#" |
| 29 | + path: src/Models/LibraryItem.php |
| 30 | + |
| 31 | + - |
| 32 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$user\\.$#" |
| 33 | + path: src/Models/LibraryItem.php |
| 34 | + |
| 35 | + - |
| 36 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$personal_folder_id\\.$#" |
| 37 | + path: src/Models/LibraryItem.php |
| 38 | + |
| 39 | + # Policies - Properties are documented |
| 40 | + - |
| 41 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$created_by\\.$#" |
| 42 | + count: 7 |
| 43 | + path: src/Policies/LibraryItemPolicy.php |
| 44 | + |
| 45 | + # Resources - Properties are documented |
| 46 | + - |
| 47 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$deleted_at\\.$#" |
| 48 | + count: 2 |
| 49 | + path: src/Resources/LibraryItemResource.php |
| 50 | + |
| 51 | + - |
| 52 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$external_url\\.$#" |
| 53 | + count: 1 |
| 54 | + path: src/Resources/LibraryItemResource.php |
| 55 | + |
| 56 | + - |
| 57 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$parent_id\\.$#" |
| 58 | + count: 2 |
| 59 | + path: src/Resources/LibraryItemResource.php |
| 60 | + |
| 61 | + - |
| 62 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$type\\.$#" |
| 63 | + count: 6 |
| 64 | + path: src/Resources/LibraryItemResource.php |
| 65 | + |
| 66 | + # Pages - Model type hints are generic but we know they're LibraryItem instances |
| 67 | + - |
| 68 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$parent_id\\.$#" |
| 69 | + path: src/Resources/Pages |
| 70 | + |
| 71 | + - |
| 72 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$id\\.$#" |
| 73 | + path: src/Resources/Pages |
| 74 | + |
| 75 | + - |
| 76 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$name\\.$#" |
| 77 | + path: src/Resources/Pages |
| 78 | + |
| 79 | + - |
| 80 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$parent\\.$#" |
| 81 | + path: src/Resources/Pages |
| 82 | + |
| 83 | + - |
| 84 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$type\\.$#" |
| 85 | + path: src/Resources/Pages |
| 86 | + |
| 87 | + - |
| 88 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$created_by\\.$#" |
| 89 | + path: src/Resources/Pages |
| 90 | + |
| 91 | + - |
| 92 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$external_url\\.$#" |
| 93 | + path: src/Resources/Pages |
| 94 | + |
| 95 | + - |
| 96 | + message: "#^Access to an undefined property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$link_description\\.$#" |
| 97 | + path: src/Resources/Pages |
| 98 | + |
| 99 | + - |
| 100 | + message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:getFirstMedia\\(\\)\\.$#" |
| 101 | + path: src/Resources/Pages |
| 102 | + |
| 103 | + - |
| 104 | + message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:getInheritedGeneralAccessDisplay\\(\\)\\.$#" |
| 105 | + path: src/Resources/Pages |
| 106 | + |
| 107 | + - |
| 108 | + message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:hasPermission\\(\\)\\.$#" |
| 109 | + path: src/Resources/Pages |
| 110 | + |
| 111 | + - |
| 112 | + message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:getSecureUrl\\(\\)\\.$#" |
| 113 | + path: src/Resources/Pages |
| 114 | + |
| 115 | + - |
| 116 | + message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:isVideoUrl\\(\\)\\.$#" |
| 117 | + path: src/Resources/Pages |
| 118 | + |
| 119 | + - |
| 120 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Resources\\\\Pages\\\\EditLibraryItemPage\\:\\:\\$parentId\\.$#" |
| 121 | + count: 2 |
| 122 | + path: src/Resources/Pages/EditLibraryItemPage.php |
| 123 | + |
| 124 | + - |
| 125 | + message: "#^Call to static method find\\(\\) on an unknown class App\\\\Models\\\\User\\.$#" |
| 126 | + count: 1 |
| 127 | + path: src/Resources/Pages/EditLibraryItemPage.php |
| 128 | + |
| 129 | + - |
| 130 | + message: "#^Call to static method query\\(\\) on an unknown class App\\\\Models\\\\User\\.$#" |
| 131 | + count: 1 |
| 132 | + path: src/Resources/Pages/EditLibraryItemPage.php |
| 133 | + |
| 134 | + - |
| 135 | + message: "#^Left side of && is always true\\.$#" |
| 136 | + count: 1 |
| 137 | + path: src/Resources/Pages/EditFile.php |
| 138 | + |
| 139 | + # Relation Managers - Model type hints are generic |
| 140 | + - |
| 141 | + message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:hasPermission\\(\\)\\.$#" |
| 142 | + count: 7 |
| 143 | + path: src/Resources/RelationManagers/LibraryItemPermissionsRelationManager.php |
| 144 | + |
| 145 | + - |
| 146 | + message: "#^Call to an undefined method Illuminate\\\\Foundation\\\\Auth\\\\User\\:\\:hasRole\\(\\)\\.$#" |
| 147 | + count: 1 |
| 148 | + path: src/Resources/RelationManagers/LibraryItemPermissionsRelationManager.php |
| 149 | + |
| 150 | + - |
| 151 | + message: "#^Call to static method find\\(\\) on an unknown class App\\\\Models\\\\User\\.$#" |
| 152 | + count: 1 |
| 153 | + path: src/Resources/RelationManagers/LibraryItemPermissionsRelationManager.php |
| 154 | + |
| 155 | + - |
| 156 | + message: "#^Call to static method where\\(\\) on an unknown class App\\\\Models\\\\User\\.$#" |
| 157 | + count: 1 |
| 158 | + path: src/Resources/RelationManagers/LibraryItemPermissionsRelationManager.php |
| 159 | + |
| 160 | + - |
| 161 | + message: "#^Left side of && is always true\\.$#" |
| 162 | + count: 1 |
| 163 | + path: src/Resources/RelationManagers/LibraryItemPermissionsRelationManager.php |
| 164 | + |
| 165 | + - |
| 166 | + message: "#^Static call to instance method Filament\\\\Resources\\\\RelationManagers\\\\RelationManager\\:\\:getOwnerRecord\\(\\)\\.$#" |
| 167 | + count: 1 |
| 168 | + path: src/Resources/RelationManagers/LibraryItemPermissionsRelationManager.php |
| 169 | + |
| 170 | + - |
| 171 | + message: "#^Anonymous function never returns null so it can be removed from the return type\\.$#" |
| 172 | + count: 1 |
| 173 | + path: src/Resources/RelationManagers/LibraryItemPermissionsRelationManager.php |
| 174 | + |
| 175 | + # Services - Properties are documented |
| 176 | + - |
| 177 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$parent_id\\.$#" |
| 178 | + count: 1 |
| 179 | + path: src/Services/PermissionService.php |
| 180 | + |
| 181 | + - |
| 182 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$type\\.$#" |
| 183 | + count: 1 |
| 184 | + path: src/Services/PermissionService.php |
| 185 | + |
| 186 | + # Tables - Properties are documented |
| 187 | + - |
| 188 | + message: "#^Access to an undefined property Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem\\:\\:\\$created_by\\.$#" |
| 189 | + count: 1 |
| 190 | + path: src/Tables/Columns/PermissionsColumn.php |
| 191 | + |
| 192 | + # Instanceof checks - These are necessary for type narrowing but PHPStan sees them as always true |
| 193 | + # This happens because PHPStan doesn't understand the dynamic nature of the ownerRecord |
| 194 | + - |
| 195 | + message: "#^Instanceof between Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem and Tapp\\\\FilamentLibrary\\\\Models\\\\LibraryItem will always evaluate to true\\.$#" |
| 196 | + path: src/Resources/RelationManagers/LibraryItemPermissionsRelationManager.php |
| 197 | + |
| 198 | + # Unused traits - These are provided for users to use in their own models |
| 199 | + - |
| 200 | + message: "#^Trait Tapp\\\\FilamentLibrary\\\\Traits\\\\HasLibraryFavorites is used zero times and is not analysed\\.$#" |
| 201 | + |
| 202 | + - |
| 203 | + message: "#^Trait Tapp\\\\FilamentLibrary\\\\Traits\\\\LibraryUser is used zero times and is not analysed\\.$#" |
0 commit comments