Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
36 lines (33 loc) · 1.53 KB
/
Copy pathphpstan.neon
File metadata and controls
36 lines (33 loc) · 1.53 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
includes:
- vendor/larastan/larastan/extension.neon
parameters:
paths:
- src
level: 8
tmpDir: build/phpstan
ignoreErrors:
# The package's Blade views are registered under the "adminlte::" namespace
# at runtime by AdminLteServiceProvider::boot(). PHPStan does not boot the
# provider during analysis, so it cannot resolve the namespace and reports
# every view('adminlte::...') call as a non-view-string. These are valid.
-
identifier: argument.type
message: '#Parameter \#1 \$view of function view expects view-string\|null, string given#'
paths:
- src/View/Components
- src/AdminLteServiceProvider.php
# Same cause: the demo routes are Route::view('…', 'adminlte::…').
-
identifier: argument.type
message: '#Parameter \#2 \$view of static method Illuminate\\Routing\\Router::view\(\) expects view-string, string given#'
paths:
- src/AdminLteServiceProvider.php
# The provider opportunistically wires consuming-app classes
# (App\Models\..., App\Policies\...) that only exist after
# `adminlte:scaffold`. They can never exist while analysing the
# package itself, so PHPStan sees class_exists() as always-false.
# The guards are the whole point — keep them.
-
message: '#Call to function class_exists\(\) with .App\\#'
paths:
- src/AdminLteServiceProvider.php