parameters: level: 5 paths: - app - routes - config excludePaths: - app/Http/Middleware/TrustProxies.php - storage/* - bootstrap/cache/* - vendor/* reportUnmatchedIgnoredErrors: false ignoreErrors: # Laravel magic - Model static methods like find, where, create, etc. - '#Call to an undefined static method App\\Models\\.*::(find|where|create|update|delete|first|get|all|select|pluck|insert|upsert|updateOrCreate|latest|orderBy|whereIn|whereKey|max|min|count|exists|paginate|with|has|doesntHave|whereHas|withCount)#' - '#Call to an undefined static method Illuminate\\Database\\Eloquent\\Model::(find|where|create|update|delete|first|get|all|select|pluck|insert|upsert|updateOrCreate|latest|orderBy|whereIn|whereKey|max|min|count|exists|paginate|with|has|doesntHave|whereHas|withCount)#' - '#Call to an undefined method Illuminate\\Database\\Eloquent\\Builder::.*#' - '#Call to an undefined method Illuminate\\Database\\Eloquent\\Collection::.*#' - '#Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\.*::.*#' # Laravel magic - Model properties (accessed via __get) - '#Access to an undefined property App\\Models\\.*::\$.*#' - '#Access to an undefined property Illuminate\\Database\\Eloquent\\Model::\$.*#' - '#Access to an undefined property Illuminate\\Contracts\\Auth\\Authenticatable::\$.*#' # Laravel Auth/Session/Request magic - '#Call to an undefined method Illuminate\\Contracts\\Auth\\(Factory|Guard|StatefulGuard)::.*#' - '#Call to an undefined method Illuminate\\Contracts\\Auth\\Authenticatable::.*#' - '#Call to an undefined static method Illuminate\\Support\\Facades\\Auth::.*#' - '#Access to an undefined property Illuminate\\Http\\Request::\$.*#' - '#Access to an undefined property Illuminate\\Support\\Optional::\$.*#' # PHPDoc annotations - '#PHPDoc tag @var#' - '#PHPDoc tag @return with type array.* is not subtype of native type array#' # Laravel helper functions - '#Function (view|request|route|setting|__|fake|app_path|base_path|config_path|database_path|public_path|resource_path|storage_path|redirect|session|cookie|asset|url|config|app|auth|bcrypt|decrypt|encrypt|csrf_token|csrf_field|method_field|old|back|abort|dispatch|event|now|today|info|logger|report|rescue|retry|throw_if|throw_unless|validator|trans|translation|collect|env|tap|value|with|isDarkColor) not found#' # Trait/Lifecycle method errors - '#unknown trait#' # Type system issues - '#Binary operation#' - '#mixed given#' # Property access on possible non-objects - '#Cannot access property.*on array.*|.*Model#' - '#property.nonObject#' # Nullsafe operator warnings (PHPStan being too strict) - '#nullsafe.neverNull#' - '#nullCoalesce.offset#' - '#identical.alwaysFalse#' # Method call on generic types - '#Call to an undefined method App\\Services\\RconService::sendSafelyFromDashboard#' # Argument type mismatches that are valid in Laravel - '#Parameter.*of function date expects int.*string given#' - '#Parameter.*expects App\\Models\\User.*Authenticatable#' # Return type issues with View contracts - '#should return Illuminate\\View\\View but returns Illuminate\\Contracts\\View\\View#' # Collection property access (Laravel magic) - '#Access to an undefined property Illuminate\\Database\\Eloquent\\Collection::\$.*#' # Relation manager static property (Filament magic) - '#Access to an undefined static property static.*RelationManager.*\$navigationGroup#' # Method not found on Filament actions (Filament magic) - '#Call to an undefined method Filament\\Actions\\DeleteBulkAction::getRecords#' - '#Call to an undefined method Filament\\Actions\\(DeleteAction|DeleteBulkAction)::(getRecord|getRecords)#' # PHPStan being too strict with PHPDoc types - '#If condition is always true#' - '#treatPhpDocTypesAsCertain#' # Socket comparison (PHPStan being strict about type) - '#Strict comparison using === between Socket and false#' # Console routes use $this bound to command instance - '#Undefined variable: \$this#' # Eloquent Builder with() method false positives - '#Call to an undefined method Illuminate\\Database\\Query\\Builder::with#' - '#Call to an undefined method Illuminate\\Database\\Eloquent\\Builder::with#' # View return type issues (Laravel returns concrete View class) - '#Method.*should return.*but returns Illuminate\\Contracts\\View\\View#' # External package false positives - '#Call to static method validate\(\) on an unknown class Coderflex\\LaravelTurnstile#' # PHPStan being too strict with PHPDoc types on Route objects - '#function.impossibleType#' - '#function.alreadyNarrowedType#' - '#booleanAnd.leftAlwaysTrue#'