-
-
Notifications
You must be signed in to change notification settings - Fork 632
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
63 lines (55 loc) · 2.75 KB
/
Copy pathphpstan.dist.neon
File metadata and controls
63 lines (55 loc) · 2.75 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
includes:
- vendor/larastan/larastan/extension.neon
- .phpstan/baseline.neon
parameters:
level: 0
paths:
- src
# Symbol-only stubs for optional runtime integrations that this package
# never requires as real dependencies (see .phpstan/stubs/debugbar.php).
scanFiles:
- .phpstan/stubs/debugbar.php
ignoreErrors:
-
identifier: class.notFound
message: '#^(Class|Instantiated class) Spatie\\LaravelIgnition\\Exceptions\\(ViewException|ViewExceptionWithSolution) not found\.$#'
path: src/View/Antlers/Language/Runtime/RuntimeParser.php
# composer/composer is an optional runtime integration (composer update hooks), not a real dependency.
-
identifier: class.notFound
message: '#^Parameter \$event of method Statamic\\Console\\Composer\\Scripts::preUpdateCmd\(\) has invalid type Composer\\Script\\Event\.$#'
path: src/Console/Composer/Scripts.php
# barryvdh/laravel-debugbar is an optional runtime integration, guarded by class_exists()/isEnabled() checks.
-
identifier: class.notFound
message: '#^Caught class DebugBar\\DebugBarException not found\.$#'
path: src/Forms/Tags.php
-
identifier: function.notFound
message: '#^Function debug not found\.$#'
path: src/Modifiers/CoreModifiers.php
# spatie/laravel-ignition is an optional runtime integration; ddd() is one of its helpers.
-
identifier: function.notFound
message: '#^Function ddd not found\.$#'
path: src/Modifiers/CoreModifiers.php
# self::this() inside the Carbon::macro() closure resolves to Carbon\Traits\Mixin::this(),
# a protected static method Carbon rebinds into scope for macros registered via Mixin -
# see vendor/nesbot/carbon/src/Carbon/Traits/Mixin.php. PHPStan can't follow the
# static-closure scope rebinding, so it thinks this() is being called on this class.
-
identifier: staticMethod.notFound
message: '#^Call to an undefined static method Statamic\\Providers\\AppServiceProvider::this\(\)\.$#'
path: src/Providers/AppServiceProvider.php
# keyByWithKey() is a public Collection macro kept for third-party/addon backward
# compatibility even though Statamic's own code no longer calls it, so its use of
# Collection's protected valueRetriever()/$items internals is left as-is rather than
# rewritten to public equivalents.
-
identifier: method.protected
message: '#^Call to protected method valueRetriever\(\) of class Illuminate\\Support\\Collection(<.*>)?\.$#'
path: src/Providers/CollectionsServiceProvider.php
-
identifier: property.protected
message: '#^Access to protected property Illuminate\\Support\\Collection::\$items\.$#'
path: src/Providers/CollectionsServiceProvider.php