Skip to content

Commit f6aee65

Browse files
committed
fix phpstan
1 parent 58a5579 commit f6aee65

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

phpstan-baseline.neon

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,23 @@ parameters:
3131
path: src/Metadata/AttributeMetadataFactory.php
3232

3333
-
34-
message: '#^Parameter \#1 \$enum of class Patchlevel\\Hydrator\\Normalizer\\EnumNormalizer constructor expects class\-string\<BackedEnum\>\|null, string given\.$#'
35-
identifier: argument.type
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
3636
count: 1
3737
path: src/Metadata/AttributeMetadataFactory.php
3838

3939
-
40-
message: '#^Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string\<T of object\>\|T of object, string given\.$#'
40+
message: '#^Parameter \#1 \$class of method Patchlevel\\Hydrator\\Metadata\\AttributeMetadataFactory\:\:findNormalizerOnClass\(\) expects class\-string, string given\.$#'
4141
identifier: argument.type
4242
count: 2
4343
path: src/Metadata/AttributeMetadataFactory.php
4444

45+
-
46+
message: '#^Parameter \#1 \$enum of class Patchlevel\\Hydrator\\Normalizer\\EnumNormalizer constructor expects class\-string\<BackedEnum\>\|null, string given\.$#'
47+
identifier: argument.type
48+
count: 1
49+
path: src/Metadata/AttributeMetadataFactory.php
50+
4551
-
4652
message: '#^Property Patchlevel\\Hydrator\\Metadata\\ClassMetadata\<T of object \= object\>\:\:\$reflection \(ReflectionClass\<T of object \= object\>\) does not accept ReflectionClass\<object\>\.$#'
4753
identifier: assign.propertyType

0 commit comments

Comments
 (0)