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
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+25
Original file line number
Diff line number
Diff line change
@@ -249,6 +249,11 @@ parameters:
249
249
count:1
250
250
path:src/PhpDoc/TypeNodeResolver.php
251
251
252
+
-
253
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
254
+
count:2
255
+
path:src/PhpDoc/TypeNodeResolver.php
256
+
252
257
-
253
258
message:"#^Dead catch \\- PHPStan\\\\BetterReflection\\\\Identifier\\\\Exception\\\\InvalidIdentifierName is never thrown in the try block\\.$#"
254
259
count:2
@@ -678,6 +683,11 @@ parameters:
678
683
count:2
679
684
path:src/Type/Generic/GenericClassStringType.php
680
685
686
+
-
687
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
688
+
count:1
689
+
path:src/Type/Generic/GenericObjectType.php
690
+
681
691
-
682
692
message:"#^Doing instanceof PHPStan\\\\Type\\\\TypeWithClassName is error\\-prone\\. Use Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
683
693
count:1
@@ -718,6 +728,11 @@ parameters:
718
728
count:1
719
729
path:src/Type/Generic/TemplateTypeFactory.php
720
730
731
+
-
732
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
733
+
count:1
734
+
path:src/Type/Generic/TemplateTypeFactory.php
735
+
721
736
-
722
737
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectWithoutClassType is error\\-prone\\. Use Type\\:\\:isObject\\(\\) instead\\.$#"
723
738
count:1
@@ -789,6 +804,11 @@ parameters:
789
804
count:1
790
805
path:src/Type/ObjectType.php
791
806
807
+
-
808
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
809
+
count:6
810
+
path:src/Type/ObjectType.php
811
+
792
812
-
793
813
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectWithoutClassType is error\\-prone\\. Use Type\\:\\:isObject\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
972
+
count:3
973
+
path:src/Type/StaticType.php
974
+
950
975
-
951
976
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectWithoutClassType is error\\-prone\\. Use Type\\:\\:isObject\\(\\) instead\\.$#"
|| $aliasNameResolvedTypeinstanceof TemplateType; // aliases take precedence over type parameters, this is reported by other rules using TemplateTypeCheck
0 commit comments