|
1 | 1 | parameters:
|
2 | 2 | ignoreErrors:
|
3 | 3 | -
|
4 |
| - message: "#^Parameter \\#2 \\$callback of function array_reduce expects callable\\(GrahamCampbell\\\\ResultType\\\\Result\\<array\\{Dotenv\\\\Parser\\\\Value, int\\}, mixed\\>\\|GrahamCampbell\\\\ResultType\\\\Result\\<array\\{mixed, int\\}, string\\>, string\\)\\: \\(GrahamCampbell\\\\ResultType\\\\Result\\<array\\{Dotenv\\\\Parser\\\\Value, int\\}, mixed\\>\\|GrahamCampbell\\\\ResultType\\\\Result\\<array\\{mixed, int\\}, string\\>\\), Closure\\(GrahamCampbell\\\\ResultType\\\\Result, string\\)\\: GrahamCampbell\\\\ResultType\\\\Result\\<array\\{Dotenv\\\\Parser\\\\Value, int\\}, string\\> given\\.$#" |
| 4 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<Dotenv\\Parser\\Value\> is not subtype of type PhpOption\\Option\<Dotenv\\Parser\\Value\|null\>\.$#' |
| 5 | + identifier: varTag.type |
| 6 | + count: 1 |
| 7 | + path: src/Parser/Entry.php |
| 8 | + |
| 9 | + - |
| 10 | + message: '#^Anonymous function should return GrahamCampbell\\ResultType\\Result\<mixed, string\> but returns GrahamCampbell\\ResultType\\Result\<Dotenv\\Parser\\Entry, string\>\.$#' |
| 11 | + identifier: return.type |
| 12 | + count: 1 |
| 13 | + path: src/Parser/EntryParser.php |
| 14 | + |
| 15 | + - |
| 16 | + message: '#^Method Dotenv\\Parser\\EntryParser\:\:parse\(\) should return GrahamCampbell\\ResultType\\Result\<Dotenv\\Parser\\Entry, string\> but returns GrahamCampbell\\ResultType\\Result\<mixed, string\>\.$#' |
| 17 | + identifier: return.type |
5 | 18 | count: 1
|
6 | 19 | path: src/Parser/EntryParser.php
|
7 | 20 |
|
8 | 21 | -
|
9 |
| - message: "#^Only booleans are allowed in a negated boolean, int\\|false given\\.$#" |
| 22 | + message: '#^PHPDoc tag @var with type GrahamCampbell\\ResultType\\Result\<Dotenv\\Parser\\Value\|null, string\> is not subtype of type GrahamCampbell\\ResultType\\Result\<Dotenv\\Parser\\Value, string\>\|GrahamCampbell\\ResultType\\Result\<null, mixed\>\.$#' |
| 23 | + identifier: varTag.type |
| 24 | + count: 1 |
| 25 | + path: src/Parser/EntryParser.php |
| 26 | + |
| 27 | + - |
| 28 | + message: '#^Parameter \#2 \$callback of function array_reduce expects callable\(GrahamCampbell\\ResultType\\Result\<array\{Dotenv\\Parser\\Value, int\}, mixed\>\|GrahamCampbell\\ResultType\\Result\<array\{mixed, int\}, string\>, string\)\: \(GrahamCampbell\\ResultType\\Result\<array\{Dotenv\\Parser\\Value, int\}, mixed\>\|GrahamCampbell\\ResultType\\Result\<array\{mixed, int\}, string\>\), Closure\(GrahamCampbell\\ResultType\\Result, string\)\: GrahamCampbell\\ResultType\\Result\<array\{Dotenv\\Parser\\Value, int\}, string\> given\.$#' |
| 29 | + identifier: argument.type |
| 30 | + count: 1 |
| 31 | + path: src/Parser/EntryParser.php |
| 32 | + |
| 33 | + - |
| 34 | + message: '#^Only booleans are allowed in a negated boolean, int\|false given\.$#' |
| 35 | + identifier: booleanNot.exprNotBoolean |
| 36 | + count: 1 |
| 37 | + path: src/Parser/Lexer.php |
| 38 | + |
| 39 | + - |
| 40 | + message: '#^Parameter \#1 \$pattern of function preg_match expects string, mixed given\.$#' |
| 41 | + identifier: argument.type |
10 | 42 | count: 1
|
11 | 43 | path: src/Parser/Lexer.php
|
12 | 44 |
|
13 | 45 | -
|
14 |
| - message: "#^Parameter \\#1 \\$readers of class Dotenv\\\\Repository\\\\RepositoryBuilder constructor expects array\\<Dotenv\\\\Repository\\\\Adapter\\\\ReaderInterface\\>, array\\<Dotenv\\\\Repository\\\\Adapter\\\\ReaderInterface\\|S\\> given\\.$#" |
| 46 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<Dotenv\\Repository\\Adapter\\AdapterInterface\> is not subtype of type PhpOption\\Some\<Dotenv\\Repository\\Adapter\\ApacheAdapter\>\.$#' |
| 47 | + identifier: varTag.type |
| 48 | + count: 1 |
| 49 | + path: src/Repository/Adapter/ApacheAdapter.php |
| 50 | + |
| 51 | + - |
| 52 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<string\> is not subtype of type PhpOption\\Option\<string\|false\|null\>\.$#' |
| 53 | + identifier: varTag.type |
| 54 | + count: 1 |
| 55 | + path: src/Repository/Adapter/ApacheAdapter.php |
| 56 | + |
| 57 | + - |
| 58 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<Dotenv\\Repository\\Adapter\\AdapterInterface\> is not subtype of type PhpOption\\Some\<Dotenv\\Repository\\Adapter\\ArrayAdapter\>\.$#' |
| 59 | + identifier: varTag.type |
| 60 | + count: 1 |
| 61 | + path: src/Repository/Adapter/ArrayAdapter.php |
| 62 | + |
| 63 | + - |
| 64 | + message: '#^Cannot cast mixed to string\.$#' |
| 65 | + identifier: cast.string |
| 66 | + count: 1 |
| 67 | + path: src/Repository/Adapter/EnvConstAdapter.php |
| 68 | + |
| 69 | + - |
| 70 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<Dotenv\\Repository\\Adapter\\AdapterInterface\> is not subtype of type PhpOption\\Some\<Dotenv\\Repository\\Adapter\\EnvConstAdapter\>\.$#' |
| 71 | + identifier: varTag.type |
| 72 | + count: 1 |
| 73 | + path: src/Repository/Adapter/EnvConstAdapter.php |
| 74 | + |
| 75 | + - |
| 76 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<Dotenv\\Repository\\Adapter\\AdapterInterface\> is not subtype of type PhpOption\\Some\<Dotenv\\Repository\\Adapter\\PutenvAdapter\>\.$#' |
| 77 | + identifier: varTag.type |
| 78 | + count: 1 |
| 79 | + path: src/Repository/Adapter/PutenvAdapter.php |
| 80 | + |
| 81 | + - |
| 82 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<string\> is not subtype of type PhpOption\\Option\<string\|false\>\.$#' |
| 83 | + identifier: varTag.type |
| 84 | + count: 1 |
| 85 | + path: src/Repository/Adapter/PutenvAdapter.php |
| 86 | + |
| 87 | + - |
| 88 | + message: '#^Cannot cast mixed to string\.$#' |
| 89 | + identifier: cast.string |
| 90 | + count: 1 |
| 91 | + path: src/Repository/Adapter/ServerConstAdapter.php |
| 92 | + |
| 93 | + - |
| 94 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<Dotenv\\Repository\\Adapter\\AdapterInterface\> is not subtype of type PhpOption\\Some\<Dotenv\\Repository\\Adapter\\ServerConstAdapter\>\.$#' |
| 95 | + identifier: varTag.type |
| 96 | + count: 1 |
| 97 | + path: src/Repository/Adapter/ServerConstAdapter.php |
| 98 | + |
| 99 | + - |
| 100 | + message: '#^Parameter \#1 \$callable of method PhpOption\\Some\<Dotenv\\Repository\\Adapter\\AdapterInterface\|string\>\:\:flatMap\(\) expects callable\(Dotenv\\Repository\\Adapter\\AdapterInterface\|string\)\: PhpOption\\Option\<S\>, Closure\(mixed\)\: mixed given\.$#' |
| 101 | + identifier: argument.type |
| 102 | + count: 1 |
| 103 | + path: src/Repository/RepositoryBuilder.php |
| 104 | + |
| 105 | + - |
| 106 | + message: '#^Parameter \#1 \$callable of method PhpOption\\Some\<Dotenv\\Repository\\Adapter\\ReaderInterface\|string\>\:\:flatMap\(\) expects callable\(Dotenv\\Repository\\Adapter\\ReaderInterface\|string\)\: PhpOption\\Option\<S\>, Closure\(mixed\)\: mixed given\.$#' |
| 107 | + identifier: argument.type |
| 108 | + count: 1 |
| 109 | + path: src/Repository/RepositoryBuilder.php |
| 110 | + |
| 111 | + - |
| 112 | + message: '#^Parameter \#1 \$callable of method PhpOption\\Some\<Dotenv\\Repository\\Adapter\\WriterInterface\|string\>\:\:flatMap\(\) expects callable\(Dotenv\\Repository\\Adapter\\WriterInterface\|string\)\: PhpOption\\Option\<S\>, Closure\(mixed\)\: mixed given\.$#' |
| 113 | + identifier: argument.type |
| 114 | + count: 1 |
| 115 | + path: src/Repository/RepositoryBuilder.php |
| 116 | + |
| 117 | + - |
| 118 | + message: '#^Parameter \#1 \$readers of class Dotenv\\Repository\\RepositoryBuilder constructor expects array\<Dotenv\\Repository\\Adapter\\ReaderInterface\>, array\<Dotenv\\Repository\\Adapter\\ReaderInterface\|S\> given\.$#' |
| 119 | + identifier: argument.type |
15 | 120 | count: 2
|
16 | 121 | path: src/Repository/RepositoryBuilder.php
|
17 | 122 |
|
18 | 123 | -
|
19 |
| - message: "#^Parameter \\#2 \\$writers of class Dotenv\\\\Repository\\\\RepositoryBuilder constructor expects array\\<Dotenv\\\\Repository\\\\Adapter\\\\WriterInterface\\>, array\\<Dotenv\\\\Repository\\\\Adapter\\\\WriterInterface\\|S\\> given\\.$#" |
| 124 | + message: '#^Parameter \#2 \$writers of class Dotenv\\Repository\\RepositoryBuilder constructor expects array\<Dotenv\\Repository\\Adapter\\WriterInterface\>, array\<Dotenv\\Repository\\Adapter\\WriterInterface\|S\> given\.$#' |
| 125 | + identifier: argument.type |
20 | 126 | count: 2
|
21 | 127 | path: src/Repository/RepositoryBuilder.php
|
| 128 | + |
| 129 | + - |
| 130 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<string\> is not subtype of type PhpOption\\Option\<string\|false\>\.$#' |
| 131 | + identifier: varTag.type |
| 132 | + count: 1 |
| 133 | + path: src/Store/File/Reader.php |
| 134 | + |
| 135 | + - |
| 136 | + message: '#^Method Dotenv\\Util\\Regex\:\:occurrences\(\) should return GrahamCampbell\\ResultType\\Result\<int, string\> but returns GrahamCampbell\\ResultType\\Result\<int\<0, max\>, string\>\.$#' |
| 137 | + identifier: return.type |
| 138 | + count: 1 |
| 139 | + path: src/Util/Regex.php |
| 140 | + |
| 141 | + - |
| 142 | + message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' |
| 143 | + identifier: function.alreadyNarrowedType |
| 144 | + count: 1 |
| 145 | + path: src/Util/Str.php |
| 146 | + |
| 147 | + - |
| 148 | + message: '#^Loose comparison via "\=\=" is not allowed\.$#' |
| 149 | + identifier: equal.notAllowed |
| 150 | + count: 1 |
| 151 | + path: src/Util/Str.php |
| 152 | + |
| 153 | + - |
| 154 | + message: '#^PHPDoc tag @var with type GrahamCampbell\\ResultType\\Result\<string, string\> is not subtype of type GrahamCampbell\\ResultType\\Result\<mixed, non\-falsy\-string\>\.$#' |
| 155 | + identifier: varTag.type |
| 156 | + count: 2 |
| 157 | + path: src/Util/Str.php |
| 158 | + |
| 159 | + - |
| 160 | + message: '#^PHPDoc tag @var with type PhpOption\\Option\<int\> is not subtype of type PhpOption\\Option\<int\<0, max\>\|false\>\.$#' |
| 161 | + identifier: varTag.type |
| 162 | + count: 1 |
| 163 | + path: src/Util/Str.php |
0 commit comments