Skip to content

Add phpstan and resolve for level 5 #38

Add phpstan and resolve for level 5

Add phpstan and resolve for level 5 #38

Triggered via push October 16, 2023 20:56
Status Failure
Total duration 1m 11s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 3 warnings
tests
Process completed with exit code 2.
phpstan: src/AutoMapper.php#L1
Ignored error pattern #^Parameter \#3 \$descriptionExtractors of class Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor constructor expects iterable\<Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface\>, array\<int, Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor\> given\.$# in path /home/runner/work/automapper/automapper/src/AutoMapper.php was not matched in reported errors.
phpstan: src/AutoMapper.php#L149
Parameter $nameConverter of method AutoMapper\AutoMapper::create() has invalid type Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface.
phpstan: src/AutoMapper.php#L156
Instantiated class Doctrine\Common\Annotations\AnnotationReader not found.
phpstan: src/AutoMapper.php#L156
Instantiated class Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory not found.
phpstan: src/AutoMapper.php#L156
Instantiated class Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader not found.
phpstan: src/AutoMapper.php#L161
Instantiated class Symfony\Component\Serializer\Mapping\ClassDiscriminatorFromClassMetadata not found.
phpstan: src/AutoMapper.php#L161
Parameter #2 $classDiscriminator of class AutoMapper\Generator\Generator constructor expects Symfony\Component\Serializer\Mapping\ClassDiscriminatorResolverInterface|null, Symfony\Component\Serializer\Mapping\ClassDiscriminatorFromClassMetadata given.
phpstan: src/AutoMapper.php#L166
Access to constant ALLOW_PRIVATE on an unknown class Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor.
phpstan: src/AutoMapper.php#L166
Access to constant ALLOW_PROTECTED on an unknown class Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor.
phpstan: src/AutoMapper.php#L166
Access to constant ALLOW_PUBLIC on an unknown class Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor.
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2, shivammathur/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
phpstan
The following actions uses node12 which is deprecated and will be forced to run on node16: shivammathur/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cs-check
The following actions uses node12 which is deprecated and will be forced to run on node16: shivammathur/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/