-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
41 lines (37 loc) · 2.22 KB
/
phpstan-baseline.neon
File metadata and controls
41 lines (37 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
parameters:
ignoreErrors:
# FilamentColumnMacros: Inside closures passed to TextColumn::macro(), $this is
# bound at runtime via Filament's Macroable trait. PHPStan cannot infer $this
# inside a static-class closure with no explicit binding declaration.
-
message: '#^Undefined variable\: \$this$#'
identifier: variable.undefined
count: 2
path: src/Macros/FilamentColumnMacros.php
# FullNameMatcher: SQL strings built via column-name interpolation are
# non-falsy-string, not literal-string. The column names come from
# FullNameOptions (developer-configured), not from user input, so this
# is safe. PHPStan's type system has no "trusted non-user-input string" concept.
-
message: '#^Parameter \#1 \$sql of method Illuminate\\Database\\Eloquent\\Builder\<TModel of Illuminate\\Database\\Eloquent\\Model\>\:\:whereRaw\(\) expects Illuminate\\Contracts\\Database\\Query\\Expression\|literal\-string, non\-falsy\-string given\.$#'
identifier: argument.type
count: 1
path: src/Support/FullNameMatcher.php
-
message: '#^Parameter \#1 \$sql of method Illuminate\\Database\\Eloquent\\Builder\<TModel of Illuminate\\Database\\Eloquent\\Model\>\:\:orWhereRaw\(\) expects literal\-string, non\-falsy\-string given\.$#'
identifier: argument.type
count: 1
path: src/Support/FullNameMatcher.php
# FilamentMacroTests: TextColumn uses Filament\Support\Concerns\Macroable (not
# Illuminate's), so Larastan's MacroMethodsClassReflectionExtension does not
# resolve fullNameSearchable / fullNameSortable at analysis time.
-
message: '#^Call to an undefined method Filament\\Tables\\Columns\\TextColumn\:\:fullNameSearchable\(\)\.$#'
identifier: method.notFound
count: 1
path: tests/Feature/FilamentSearchableMacroTest.php
-
message: '#^Call to an undefined method Filament\\Tables\\Columns\\TextColumn\:\:fullNameSortable\(\)\.$#'
identifier: method.notFound
count: 1
path: tests/Feature/FilamentSortableMacroTest.php