You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- '#^Although PHPStan\\Node\\InClassNode is covered by backward compatibility promise, this instanceof assumption might break because it''s not guaranteed to always stay the same\.$#'
146
146
- '#^Although PHPStan\\Node\\ClassMethod is covered by backward compatibility promise, this instanceof assumption might break because it''s not guaranteed to always stay the same\.$#'
147
147
148
-
-
149
-
messages:
150
-
-'#^Although PHPStan\\Rules\\MetadataRuleError is covered by backward compatibility promise, this instanceof assumption might break because it''s not guaranteed to always stay the same\.$#'
151
-
-'#^Although PHPStan\\Rules\\FileRuleError is covered by backward compatibility promise, this instanceof assumption might break because it''s not guaranteed to always stay the same\.$#'
152
-
-'#^Although PHPStan\\Rules\\LineRuleError is covered by backward compatibility promise, this instanceof assumption might break because it''s not guaranteed to always stay the same\.$#'
153
-
-'#^Although PHPStan\\Rules\\TipRuleError is covered by backward compatibility promise, this instanceof assumption might break because it''s not guaranteed to always stay the same\.$#'
154
-
-'#^Although PHPStan\\Rules\\IdentifierRuleError is covered by backward compatibility promise, this instanceof assumption might break because it''s not guaranteed to always stay the same\.$#'
155
-
-'#^Although PHPStan\\Rules\\NonIgnorableRuleError is covered by backward compatibility promise, this instanceof assumption might break because it''s not guaranteed to always stay the same\.$#'
156
-
path:src/Error/ErrorBuilder.php
157
-
158
148
# to be done later, no idea how to fix it now
159
149
-
160
150
message:'#^Method Efabrica\\PHPStanLatte\\Collector\\Collector\\AbstractCollector::collectItems\(\) should return array\<A of array\>\|null but returns array\<int, array\<string, mixed\>\>\.$#'
Copy file name to clipboardExpand all lines: src/Error/ErrorBuilder.php
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@
15
15
usePHPStan\Rules\LineRuleError;
16
16
usePHPStan\Rules\MetadataRuleError;
17
17
usePHPStan\Rules\NonIgnorableRuleError;
18
-
usePHPStan\Rules\RuleError;
19
18
usePHPStan\Rules\RuleErrorBuilder;
20
19
usePHPStan\Rules\TipRuleError;
21
20
@@ -52,6 +51,9 @@ final class ErrorBuilder
52
51
'/PHPDoc tag @var for variable \$__variables__ has no value type specified in iterable type array\./', // fake variable $__variables__ can have not specified array type
53
52
'/Cannot call method startTag\(\) on Nette\\\\Utils\\\\Html\|string\./', // nette/forms error https://github.com/nette/forms/issues/308
54
53
'/Cannot call method endTag\(\) on Nette\\\\Utils\\\\Html\|string\./', // nette/forms error https://github.com/nette/forms/issues/308
54
+
'/Variable .* on left side of \?\?= is never defined./',
55
+
'/Variable .* on left side of \?\?= always exists and is not nullable./',
56
+
'/Property Latte\\\\Runtime\\\\Template::\$parentName .* does not accept mixed./',
0 commit comments