Skip to content

Commit 5923f0b

Browse files
committed
add phpstan errors into baseline
1 parent 61532b5 commit 5923f0b

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

phpstan-baseline.neon

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,36 @@ parameters:
1818
count: 1
1919
path: src/Cryptography/PersonalDataPayloadCryptographer.php
2020

21+
-
22+
message: '#^Method Patchlevel\\Hydrator\\Guesser\\BuiltInGuesser\:\:guess\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#'
23+
identifier: missingType.generics
24+
count: 1
25+
path: src/Guesser/BuiltInGuesser.php
26+
27+
-
28+
message: '#^Parameter \#1 \$className of class Patchlevel\\Hydrator\\Normalizer\\ObjectNormalizer constructor expects class\-string\|null, string given\.$#'
29+
identifier: argument.type
30+
count: 1
31+
path: src/Guesser/BuiltInGuesser.php
32+
33+
-
34+
message: '#^Parameter \#1 \$enum of class Patchlevel\\Hydrator\\Normalizer\\EnumNormalizer constructor expects class\-string\<BackedEnum\>\|null, string given\.$#'
35+
identifier: argument.type
36+
count: 1
37+
path: src/Guesser/BuiltInGuesser.php
38+
39+
-
40+
message: '#^Method Patchlevel\\Hydrator\\Guesser\\ChainGuesser\:\:guess\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#'
41+
identifier: missingType.generics
42+
count: 1
43+
path: src/Guesser/ChainGuesser.php
44+
45+
-
46+
message: '#^Method Patchlevel\\Hydrator\\Guesser\\Guesser\:\:guess\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#'
47+
identifier: missingType.generics
48+
count: 1
49+
path: src/Guesser/Guesser.php
50+
2151
-
2252
message: '#^Dead catch \- ReflectionException is never thrown in the try block\.$#'
2353
identifier: catch.neverThrown
@@ -30,21 +60,15 @@ parameters:
3060
count: 1
3161
path: src/Metadata/AttributeMetadataFactory.php
3262

33-
-
34-
message: '#^Method Patchlevel\\Hydrator\\Metadata\\AttributeMetadataFactory\:\:guessNormalizerByObjectType\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#'
35-
identifier: missingType.generics
36-
count: 1
37-
path: src/Metadata/AttributeMetadataFactory.php
38-
3963
-
4064
message: '#^Parameter \#1 \$class of method Patchlevel\\Hydrator\\Metadata\\AttributeMetadataFactory\:\:findNormalizerOnClass\(\) expects class\-string, string given\.$#'
4165
identifier: argument.type
4266
count: 2
4367
path: src/Metadata/AttributeMetadataFactory.php
4468

4569
-
46-
message: '#^Parameter \#1 \$enum of class Patchlevel\\Hydrator\\Normalizer\\EnumNormalizer constructor expects class\-string\<BackedEnum\>\|null, string given\.$#'
47-
identifier: argument.type
70+
message: '#^Property Patchlevel\\Hydrator\\Metadata\\AttributeMetadataFactory\:\:\$guesser \(Patchlevel\\Hydrator\\Guesser\\Guesser\|null\) is never assigned null so it can be removed from the property type\.$#'
71+
identifier: property.unusedType
4872
count: 1
4973
path: src/Metadata/AttributeMetadataFactory.php
5074

0 commit comments

Comments
 (0)