Skip to content

Commit 2d790a9

Browse files
sylfabreclaude
andcommitted
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>
1 parent 973e6b5 commit 2d790a9

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

phpstan-baseline.neon

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ parameters:
758758
identifier: closure.unusedUse
759759
count: 1
760760
path: src/Testing/PHPStanTestCase.php
761+
origin: src/Testing/PHPStanTestCaseTrait.php
761762

762763
-
763764
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:
896897
identifier: phpstanApi.instanceofType
897898
count: 2
898899
path: src/Type/BooleanType.php
900+
origin: src/Type/JustNullableTypeTrait.php
899901

900902
-
901903
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantBooleanType is error-prone and deprecated. Use Type::isTrue() or Type::isFalse() instead.'
@@ -980,36 +982,42 @@ parameters:
980982
identifier: phpstanApi.instanceofType
981983
count: 1
982984
path: src/Type/Constant/ConstantBooleanType.php
985+
origin: src/Type/Traits/ConstantScalarTypeTrait.php
983986

984987
-
985988
rawMessage: 'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
986989
identifier: phpstanApi.instanceofType
987990
count: 4
988991
path: src/Type/Constant/ConstantBooleanType.php
992+
origin: src/Type/Traits/ConstantScalarTypeTrait.php
989993

990994
-
991995
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantBooleanType is error-prone and deprecated. Use Type::isTrue() or Type::isFalse() instead.'
992996
identifier: phpstanApi.instanceofType
993997
count: 3
994998
path: src/Type/Constant/ConstantBooleanType.php
999+
origin: src/Type/Traits/ConstantScalarTypeTrait.php
9951000

9961001
-
9971002
rawMessage: 'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
9981003
identifier: phpstanApi.instanceofType
9991004
count: 4
10001005
path: src/Type/Constant/ConstantFloatType.php
1006+
origin: src/Type/Traits/ConstantScalarTypeTrait.php
10011007

10021008
-
10031009
rawMessage: 'Doing instanceof PHPStan\Type\FloatType is error-prone and deprecated. Use Type::isFloat() instead.'
10041010
identifier: phpstanApi.instanceofType
10051011
count: 1
10061012
path: src/Type/Constant/ConstantFloatType.php
1013+
origin: src/Type/Traits/ConstantScalarTypeTrait.php
10071014

10081015
-
10091016
rawMessage: 'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
10101017
identifier: phpstanApi.instanceofType
10111018
count: 4
10121019
path: src/Type/Constant/ConstantIntegerType.php
1020+
origin: src/Type/Traits/ConstantScalarTypeTrait.php
10131021

10141022
-
10151023
rawMessage: 'Doing instanceof PHPStan\Type\IntegerType is error-prone and deprecated. Use Type::isInteger() instead.'
@@ -1028,6 +1036,7 @@ parameters:
10281036
identifier: phpstanApi.instanceofType
10291037
count: 4
10301038
path: src/Type/Constant/ConstantStringType.php
1039+
origin: src/Type/Traits/ConstantScalarTypeTrait.php
10311040

10321041
-
10331042
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantStringType is error-prone and deprecated. Use Type::getConstantStrings() instead.'
@@ -1154,120 +1163,140 @@ parameters:
11541163
identifier: phpstanApi.instanceofType
11551164
count: 3
11561165
path: src/Type/Generic/TemplateArrayType.php
1166+
origin: src/Type/Generic/TemplateTypeTrait.php
11571167

11581168
-
11591169
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
11601170
identifier: phpstanApi.instanceofType
11611171
count: 3
11621172
path: src/Type/Generic/TemplateBenevolentUnionType.php
1173+
origin: src/Type/Generic/TemplateTypeTrait.php
11631174

11641175
-
11651176
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
11661177
identifier: phpstanApi.instanceofType
11671178
count: 3
11681179
path: src/Type/Generic/TemplateBooleanType.php
1180+
origin: src/Type/Generic/TemplateTypeTrait.php
11691181

11701182
-
11711183
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
11721184
identifier: phpstanApi.instanceofType
11731185
count: 3
11741186
path: src/Type/Generic/TemplateConstantArrayType.php
1187+
origin: src/Type/Generic/TemplateTypeTrait.php
11751188

11761189
-
11771190
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
11781191
identifier: phpstanApi.instanceofType
11791192
count: 3
11801193
path: src/Type/Generic/TemplateConstantIntegerType.php
1194+
origin: src/Type/Generic/TemplateTypeTrait.php
11811195

11821196
-
11831197
rawMessage: 'Method PHPStan\Type\Generic\TemplateConstantIntegerType::toPhpDocNode() should return PHPStan\PhpDocParser\Ast\Type\ConstTypeNode but returns PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode.'
11841198
identifier: return.type
11851199
count: 1
11861200
path: src/Type/Generic/TemplateConstantIntegerType.php
1201+
origin: src/Type/Generic/TemplateTypeTrait.php
11871202

11881203
-
11891204
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
11901205
identifier: phpstanApi.instanceofType
11911206
count: 3
11921207
path: src/Type/Generic/TemplateConstantStringType.php
1208+
origin: src/Type/Generic/TemplateTypeTrait.php
11931209

11941210
-
11951211
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
11961212
identifier: phpstanApi.instanceofType
11971213
count: 3
11981214
path: src/Type/Generic/TemplateFloatType.php
1215+
origin: src/Type/Generic/TemplateTypeTrait.php
11991216

12001217
-
12011218
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12021219
identifier: phpstanApi.instanceofType
12031220
count: 3
12041221
path: src/Type/Generic/TemplateGenericObjectType.php
1222+
origin: src/Type/Generic/TemplateTypeTrait.php
12051223

12061224
-
12071225
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12081226
identifier: phpstanApi.instanceofType
12091227
count: 3
12101228
path: src/Type/Generic/TemplateIntegerType.php
1229+
origin: src/Type/Generic/TemplateTypeTrait.php
12111230

12121231
-
12131232
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12141233
identifier: phpstanApi.instanceofType
12151234
count: 3
12161235
path: src/Type/Generic/TemplateIntersectionType.php
1236+
origin: src/Type/Generic/TemplateTypeTrait.php
12171237

12181238
-
12191239
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12201240
identifier: phpstanApi.instanceofType
12211241
count: 3
12221242
path: src/Type/Generic/TemplateIterableType.php
1243+
origin: src/Type/Generic/TemplateTypeTrait.php
12231244

12241245
-
12251246
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12261247
identifier: phpstanApi.instanceofType
12271248
count: 3
12281249
path: src/Type/Generic/TemplateKeyOfType.php
1250+
origin: src/Type/Generic/TemplateTypeTrait.php
12291251

12301252
-
12311253
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12321254
identifier: phpstanApi.instanceofType
12331255
count: 2
12341256
path: src/Type/Generic/TemplateMixedType.php
1257+
origin: src/Type/Generic/TemplateTypeTrait.php
12351258

12361259
-
12371260
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12381261
identifier: phpstanApi.instanceofType
12391262
count: 3
12401263
path: src/Type/Generic/TemplateNullType.php
1264+
origin: src/Type/Generic/TemplateTypeTrait.php
12411265

12421266
-
12431267
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12441268
identifier: phpstanApi.instanceofType
12451269
count: 3
12461270
path: src/Type/Generic/TemplateObjectShapeType.php
1271+
origin: src/Type/Generic/TemplateTypeTrait.php
12471272

12481273
-
12491274
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12501275
identifier: phpstanApi.instanceofType
12511276
count: 3
12521277
path: src/Type/Generic/TemplateObjectType.php
1278+
origin: src/Type/Generic/TemplateTypeTrait.php
12531279

12541280
-
12551281
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12561282
identifier: phpstanApi.instanceofType
12571283
count: 3
12581284
path: src/Type/Generic/TemplateObjectWithoutClassType.php
1285+
origin: src/Type/Generic/TemplateTypeTrait.php
12591286

12601287
-
12611288
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12621289
identifier: phpstanApi.instanceofType
12631290
count: 2
12641291
path: src/Type/Generic/TemplateStrictMixedType.php
1292+
origin: src/Type/Generic/TemplateTypeTrait.php
12651293

12661294
-
12671295
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
12681296
identifier: phpstanApi.instanceofType
12691297
count: 3
12701298
path: src/Type/Generic/TemplateStringType.php
1299+
origin: src/Type/Generic/TemplateTypeTrait.php
12711300

12721301
-
12731302
rawMessage: 'Doing instanceof PHPStan\Type\ArrayType is error-prone and deprecated. Use Type::isArray() or Type::getArrays() instead.'
@@ -1358,6 +1387,7 @@ parameters:
13581387
identifier: phpstanApi.instanceofType
13591388
count: 3
13601389
path: src/Type/Generic/TemplateUnionType.php
1390+
origin: src/Type/Generic/TemplateTypeTrait.php
13611391

13621392
-
13631393
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:
13821412
identifier: phpstanApi.instanceofType
13831413
count: 2
13841414
path: src/Type/IntegerType.php
1415+
origin: src/Type/JustNullableTypeTrait.php
13851416

13861417
-
13871418
rawMessage: 'Doing instanceof PHPStan\Type\ArrayType is error-prone and deprecated. Use Type::isArray() or Type::getArrays() instead.'

0 commit comments

Comments
 (0)