forked from contributte/translation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
82 lines (72 loc) · 2.38 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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: max
paths:
- src
- tests
ignoreErrors:
-
count: 2
message: '#^Variable property access on object\.$#'
path: 'src/Loaders/Doctrine.php'
-
count: 2
message: '#^Comparison operation "\<" between \d+ and \d+ is always false\.$#'
path: 'src/Latte/Macros.php'
-
count: 1
message: '#^Comparison operation "\>=" between \d+ and \d+ is always true\.$#'
path: 'src/Latte/Macros.php'
-
count: 1
message: '#^Result of && is always false\.$#'
path: 'src/Latte/Macros.php'
# -------------------------------------------------------------------
# for back compatibility with old packages - will be remove in future
# -------------------------------------------------------------------
-
message: """
#^Fetching class constant class of deprecated class Nette\\\\Bridges\\\\ApplicationLatte\\\\ILatteFactory\\:
use Nette\\\\Bridges\\\\ApplicationLatte\\\\LatteFactory$#
"""
count: 1
path: src/DI/TranslationExtension.php
-
message: """
#^Fetching class constant class of deprecated class Nette\\\\Localization\\\\ITranslator\\:
use Nette\\\\Localization\\\\Translator$#
"""
count: 2
path: src/DI/TranslationExtension.php
-
count: 1
message: """
#^Parameter \\$translator of method Contributte\\\\Translation\\\\Latte\\\\Filters\\:\\:__construct\\(\\) has typehint with deprecated interface Nette\\\\Localization\\\\ITranslator\\:
use Nette\\\\Localization\\\\Translator$#
"""
path: src/Latte/Filters.php
-
count: 1
message: """
#^Class Contributte\\\\Translation\\\\PrefixedTranslator implements deprecated interface Nette\\\\Localization\\\\ITranslator\\:
use Nette\\\\Localization\\\\Translator$#
"""
path: src/PrefixedTranslator.php
-
count: 1
message: """
#^Class Contributte\\\\Translation\\\\Translator implements deprecated interface Nette\\\\Localization\\\\ITranslator\\:
use Nette\\\\Localization\\\\Translator$#
"""
path: src/Translator.php
-
message: """
#^Instantiation of deprecated class Nette\\\\PhpGenerator\\\\PhpLiteral\\:
use Nette\\\\PhpGenerator\\\\Literal$#
"""
count: 1
path: src/DI/TranslationExtension.php