|
1 | 1 | parameters: |
2 | 2 | ignoreErrors: |
3 | 3 | - |
4 | | - message: """ |
5 | | - #^Fetching deprecated class constant VERSION of class Latte\\\\Engine\\: |
6 | | - use Engine\\:\\:Version$# |
7 | | - """ |
| 4 | + message: ''' |
| 5 | + #^Fetching deprecated class constant VERSION of class Latte\\Engine\: |
| 6 | + use Engine\:\:Version$# |
| 7 | + ''' |
| 8 | + identifier: classConstant.deprecated |
8 | 9 | count: 1 |
9 | 10 | path: ../src/Bridge/NetteDI/LocalizationExtension.php |
10 | 11 |
|
11 | 12 | - |
12 | | - message: "#^Method Orisai\\\\Localization\\\\Locale\\\\GrandfatheredLocale\\:\\:getStandardLocale\\(\\) never returns Orisai\\\\Localization\\\\Locale\\\\StandardLocale so it can be removed from the return type\\.$#" |
| 13 | + message: '#^Access to constant on internal class Symfony\\Polyfill\\Intl\\MessageFormatter\\MessageFormatter\.$#' |
| 14 | + identifier: classConstant.internalClass |
| 15 | + count: 1 |
| 16 | + path: ../src/Formatting/MessageFormatterFactory.php |
| 17 | + |
| 18 | + - |
| 19 | + message: '#^Call to static method create\(\) of internal class Symfony\\Polyfill\\Intl\\MessageFormatter\\MessageFormatter from outside its root namespace Symfony\.$#' |
| 20 | + identifier: staticMethod.internalClass |
| 21 | + count: 1 |
| 22 | + path: ../src/Formatting/SymfonyMessageFormatter.php |
| 23 | + |
| 24 | + - |
| 25 | + message: '#^Call to static method formatMessage\(\) of internal class Symfony\\Polyfill\\Intl\\MessageFormatter\\MessageFormatter from outside its root namespace Symfony\.$#' |
| 26 | + identifier: staticMethod.internalClass |
| 27 | + count: 1 |
| 28 | + path: ../src/Formatting/SymfonyMessageFormatter.php |
| 29 | + |
| 30 | + - |
| 31 | + message: '#^Method Orisai\\Localization\\Locale\\GrandfatheredLocale\:\:getStandardLocale\(\) never returns Orisai\\Localization\\Locale\\StandardLocale so it can be removed from the return type\.$#' |
| 32 | + identifier: return.unusedType |
13 | 33 | count: 1 |
14 | 34 | path: ../src/Locale/GrandfatheredLocale.php |
15 | 35 |
|
16 | 36 | - |
17 | | - message: "#^Method Tests\\\\Orisai\\\\Localization\\\\Doubles\\\\FakeLocaleConfigurator\\:\\:getLanguageTag\\(\\) should return string but returns string\\|null\\.$#" |
| 37 | + message: '#^Method Tests\\Orisai\\Localization\\Doubles\\FakeLocaleConfigurator\:\:getLanguageTag\(\) should return string but returns string\|null\.$#' |
| 38 | + identifier: return.type |
18 | 39 | count: 1 |
19 | 40 | path: ../tests/Doubles/FakeLocaleConfigurator.php |
20 | 41 |
|
21 | 42 | - |
22 | | - message: "#^Call to function assert\\(\\) with true will always evaluate to true\\.$#" |
| 43 | + message: '#^Call to function assert\(\) with true will always evaluate to true\.$#' |
| 44 | + identifier: function.alreadyNarrowedType |
23 | 45 | count: 1 |
24 | 46 | path: ../tests/Unit/Bridge/NetteDI/LocalizationExtensionTest.php |
25 | 47 |
|
26 | 48 | - |
27 | | - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Orisai\\\\\\\\TranslationContracts\\\\\\\\TranslatorGetter' and Orisai\\\\TranslationContracts\\\\TranslatorGetter will always evaluate to true\\.$#" |
| 49 | + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Orisai\\\\TranslationContracts\\\\TranslatorGetter'' and Orisai\\TranslationContracts\\TranslatorGetter will always evaluate to true\.$#' |
| 50 | + identifier: staticMethod.alreadyNarrowedType |
28 | 51 | count: 1 |
29 | 52 | path: ../tests/Unit/Bridge/NetteDI/LocalizationExtensionTest.php |
30 | 53 |
|
31 | 54 | - |
32 | | - message: """ |
33 | | - #^Fetching deprecated class constant VERSION of class Latte\\\\Engine\\: |
34 | | - use Engine\\:\\:Version$# |
35 | | - """ |
| 55 | + message: ''' |
| 56 | + #^Fetching deprecated class constant VERSION of class Latte\\Engine\: |
| 57 | + use Engine\:\:Version$# |
| 58 | + ''' |
| 59 | + identifier: classConstant.deprecated |
36 | 60 | count: 2 |
37 | 61 | path: ../tests/Unit/Bridge/NetteDI/LocalizationExtensionTest.php |
38 | 62 |
|
39 | 63 | - |
40 | | - message: "#^If condition is always false\\.$#" |
| 64 | + message: '#^If condition is always false\.$#' |
| 65 | + identifier: if.alwaysFalse |
41 | 66 | count: 2 |
42 | 67 | path: ../tests/Unit/Bridge/NetteDI/LocalizationExtensionTest.php |
43 | 68 |
|
44 | 69 | - |
45 | | - message: "#^Instanceof between Orisai\\\\Localization\\\\Locale\\\\LocaleProcessor and Orisai\\\\Localization\\\\Locale\\\\LocaleProcessor will always evaluate to true\\.$#" |
| 70 | + message: '#^Instanceof between Orisai\\Localization\\Locale\\LocaleProcessor and Orisai\\Localization\\Locale\\LocaleProcessor will always evaluate to true\.$#' |
| 71 | + identifier: instanceof.alwaysTrue |
46 | 72 | count: 1 |
47 | 73 | path: ../tests/Unit/Bridge/NetteDI/LocalizationExtensionTest.php |
48 | 74 |
|
49 | 75 | - |
50 | | - message: "#^Call to new Orisai\\\\Localization\\\\DefaultTranslator\\(\\) on a separate line has no effect\\.$#" |
| 76 | + message: '#^Call to new Orisai\\Localization\\DefaultTranslator\(\) on a separate line has no effect\.$#' |
| 77 | + identifier: new.resultUnused |
51 | 78 | count: 1 |
52 | 79 | path: ../tests/Unit/DefaultTranslatorTest.php |
53 | 80 |
|
54 | 81 | - |
55 | | - message: "#^Cannot call method getCount\\(\\) on Orisai\\\\Localization\\\\Logging\\\\MissingResource\\|null\\.$#" |
| 82 | + message: '#^Cannot call method getCount\(\) on Orisai\\Localization\\Logging\\MissingResource\|null\.$#' |
| 83 | + identifier: method.nonObject |
56 | 84 | count: 1 |
57 | 85 | path: ../tests/Unit/DefaultTranslatorTest.php |
58 | 86 |
|
59 | 87 | - |
60 | | - message: "#^Cannot call method getLanguageTags\\(\\) on Orisai\\\\Localization\\\\Logging\\\\MissingResource\\|null\\.$#" |
| 88 | + message: '#^Cannot call method getLanguageTags\(\) on Orisai\\Localization\\Logging\\MissingResource\|null\.$#' |
| 89 | + identifier: method.nonObject |
61 | 90 | count: 1 |
62 | 91 | path: ../tests/Unit/DefaultTranslatorTest.php |
63 | 92 |
|
64 | 93 | - |
65 | | - message: "#^Cannot call method getMessage\\(\\) on Orisai\\\\Localization\\\\Logging\\\\MissingResource\\|null\\.$#" |
| 94 | + message: '#^Cannot call method getMessage\(\) on Orisai\\Localization\\Logging\\MissingResource\|null\.$#' |
| 95 | + identifier: method.nonObject |
66 | 96 | count: 1 |
67 | 97 | path: ../tests/Unit/DefaultTranslatorTest.php |
0 commit comments