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
Update phpstan-baseline.neon with origin fields for trait-originated errors
Regenerate the baseline to include the new `origin` field emitted by the
updated formatters for errors that exclusively originate from a single
trait file.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -758,6 +758,7 @@ parameters:
758
758
identifier:closure.unusedUse
759
759
count:1
760
760
path:src/Testing/PHPStanTestCase.php
761
+
origin:src/Testing/PHPStanTestCaseTrait.php
761
762
762
763
-
763
764
rawMessage:'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
@@ -896,6 +897,7 @@ parameters:
896
897
identifier:phpstanApi.instanceofType
897
898
count:2
898
899
path:src/Type/BooleanType.php
900
+
origin:src/Type/JustNullableTypeTrait.php
899
901
900
902
-
901
903
rawMessage:'Doing instanceof PHPStan\Type\Constant\ConstantBooleanType is error-prone and deprecated. Use Type::isTrue() or Type::isFalse() instead.'
rawMessage:'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
rawMessage:'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
rawMessage:'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
rawMessage:'Method PHPStan\Type\Generic\TemplateConstantIntegerType::toPhpDocNode() should return PHPStan\PhpDocParser\Ast\Type\ConstTypeNode but returns PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode.'
rawMessage:Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
1262
1289
identifier:phpstanApi.instanceofType
1263
1290
count:2
1264
1291
path:src/Type/Generic/TemplateStrictMixedType.php
1292
+
origin:src/Type/Generic/TemplateTypeTrait.php
1265
1293
1266
1294
-
1267
1295
rawMessage:Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
1268
1296
identifier:phpstanApi.instanceofType
1269
1297
count:3
1270
1298
path:src/Type/Generic/TemplateStringType.php
1299
+
origin:src/Type/Generic/TemplateTypeTrait.php
1271
1300
1272
1301
-
1273
1302
rawMessage:'Doing instanceof PHPStan\Type\ArrayType is error-prone and deprecated. Use Type::isArray() or Type::getArrays() instead.'
@@ -1358,6 +1387,7 @@ parameters:
1358
1387
identifier:phpstanApi.instanceofType
1359
1388
count:3
1360
1389
path:src/Type/Generic/TemplateUnionType.php
1390
+
origin:src/Type/Generic/TemplateTypeTrait.php
1361
1391
1362
1392
-
1363
1393
rawMessage:'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
@@ -1382,6 +1412,7 @@ parameters:
1382
1412
identifier:phpstanApi.instanceofType
1383
1413
count:2
1384
1414
path:src/Type/IntegerType.php
1415
+
origin:src/Type/JustNullableTypeTrait.php
1385
1416
1386
1417
-
1387
1418
rawMessage:'Doing instanceof PHPStan\Type\ArrayType is error-prone and deprecated. Use Type::isArray() or Type::getArrays() instead.'
0 commit comments