generated from spawnia/php-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
phpstan.neon
33 lines (33 loc) · 1.78 KB
/
phpstan.neon
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
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
level: max
paths:
- examples/custom-types/expected
- examples/input/expected
- examples/polymorphic/expected
- examples/simple/expected
- src
- tests
tmpDir: .build/phpstan
reportUnmatchedIgnoredErrors: false # As long as we support multiple PHP versions at once, there will be some dead spots
ignoreErrors:
# Required in different versions
- '#Call to deprecated method getNamespace\(\) of class Nette\\PhpGenerator\\ClassType#'
# Necessary when calling into generated client code, we know how it looks like
- '#Unsafe usage of new static.*#'
# @property on interfaces or abstract classes
- '#Access to an undefined property GraphQL\\Type\\Definition\\NamedType&GraphQL\\Type\\Definition\\Type::\$name\.#'
- '#Access to an undefined property Spawnia\\Sailor\\Result::\$data\.#'
- '#Access to an undefined property Spawnia\\Sailor\\ErrorFreeResult::\$data\.#'
# Due to different versions of bensampo/laravel-enum
- '#extends generic class BenSampo\\Enum\\Enum but does not specify its types: TValue#'
# Due to different versions of PHPUnit, attributes are backwards-compatible though
- '#Attribute class PHPUnit\\Framework\\Attributes\\After does not exist\.#'
# Due to the workaround with ObjectLike::UNDEFINED
- '#Default value of the parameter .+ \(string\) of method .+::make\(\) is incompatible with type .+#'
- '#Default value of the parameter .+ \(string\) of method .+::execute\(\) is incompatible with type .+#'
- "#Strict comparison using !== between .+ and 'Special default…' will always evaluate to true#"
# Install https://plugins.jetbrains.com/plugin/7677-awesome-console to make those links clickable
editorUrl: '%%relFile%%:%%line%%'
editorUrlTitle: '%%relFile%%:%%line%%'