Skip to content

add union object normalizer #624

add union object normalizer

add union object normalizer #624

Triggered via pull request April 5, 2024 15:48
Status Failure
Total duration 35s
Artifacts

phpstan.yml

on: pull_request
Matrix: Static Analysis by PHPStan
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/Normalizer/UnionObjectNormalizer.php#L32
Parameter #1 $array of function array_flip expects array<int|string>, array<class-string, string>|null given.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/Normalizer/UnionObjectNormalizer.php#L52
Parameter #1 $array of function array_keys expects array, array<class-string, string>|null given.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/Normalizer/UnionObjectNormalizer.php#L57
Parameter #2 $array of function array_key_exists expects array, array<class-string, string>|null given.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/Normalizer/UnionObjectNormalizer.php#L59
Parameter #1 $array of function array_keys expects array, array<class-string, string>|null given.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/Normalizer/UnionObjectNormalizer.php#L114
Method Patchlevel\Hydrator\Normalizer\UnionObjectNormalizer::__serialize() should return array{typeToClassMap: array<string, class-string>, classToTypeMap: array<class-string, string>, typeFieldName: string, hydrator: null} but returns array{typeToClassMap: array<string, class-string>, classToTypeMap: array<class-string, string>|null, typeFieldName: string, hydrator: null}.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest)
Process completed with exit code 1.