Skip to content

Union types complex #652

Union types complex

Union types complex #652

Triggered via pull request July 17, 2024 21:57
Status Failure
Total duration 42s
Artifacts

static-analysis.yaml

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

Annotations

30 errors and 10 warnings
Static Analysis with PHPStan (8.2): src/Metadata/Driver/DoctrineTypeDriver.php#L22
PHPDoc tag @param for parameter $doctrineMetadata with type Doctrine\ORM\Mapping\ClassMetadataInfo is not subtype of native type Doctrine\Persistence\Mapping\ClassMetadata.
Static Analysis with PHPStan (8.2): src/Metadata/Driver/DoctrineTypeDriver.php#L22
Parameter $doctrineMetadata of method JMS\Serializer\Metadata\Driver\DoctrineTypeDriver::setDiscriminator() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.
Static Analysis with PHPStan (8.2): src/Metadata/Driver/DoctrineTypeDriver.php#L26
Call to an undefined method Doctrine\Persistence\Mapping\ClassMetadata::isRootEntity().
Static Analysis with PHPStan (8.2): src/Metadata/Driver/DoctrineTypeDriver.php#L29
Access to an undefined property Doctrine\Persistence\Mapping\ClassMetadata::$discriminatorColumn.
Static Analysis with PHPStan (8.2): src/Metadata/Driver/DoctrineTypeDriver.php#L54
Call to method isInheritanceTypeNone() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.
Static Analysis with PHPStan (8.2): src/Metadata/Driver/DoctrineTypeDriver.php#L54
Class Doctrine\ORM\Mapping\ClassMetadataInfo not found.
Static Analysis with PHPStan (8.2): tests/Metadata/Driver/DoctrineDriverTest.php#L144
Instantiated class Doctrine\ORM\Mapping\Driver\AnnotationDriver not found.
Static Analysis with PHPStan (8.2): tests/Metadata/Driver/DoctrinePHPCRDriverTest.php#L105
Instantiated class Doctrine\ODM\PHPCR\Mapping\Driver\AnnotationDriver not found.
Static Analysis with PHPStan (8.2): tests/Serializer/Doctrine/IntegrationTest.php#L146
Instantiated class Doctrine\ORM\Mapping\Driver\AnnotationDriver not found.
Static Analysis with PHPStan (8.2): tests/Serializer/Doctrine/IntegrationTest.php#L204
Call to an undefined method Doctrine\ORM\Configuration::getEntityNamespace().
Static Analysis with PHPStan (8.1)
The job was canceled because "_8_2" failed.
Static Analysis with PHPStan (8.1): src/Metadata/Driver/DoctrineTypeDriver.php#L22
PHPDoc tag @param for parameter $doctrineMetadata with type Doctrine\ORM\Mapping\ClassMetadataInfo is not subtype of native type Doctrine\Persistence\Mapping\ClassMetadata.
Static Analysis with PHPStan (8.1): src/Metadata/Driver/DoctrineTypeDriver.php#L22
Parameter $doctrineMetadata of method JMS\Serializer\Metadata\Driver\DoctrineTypeDriver::setDiscriminator() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.
Static Analysis with PHPStan (8.1): src/Metadata/Driver/DoctrineTypeDriver.php#L26
Call to an undefined method Doctrine\Persistence\Mapping\ClassMetadata::isRootEntity().
Static Analysis with PHPStan (8.1): src/Metadata/Driver/DoctrineTypeDriver.php#L29
Access to an undefined property Doctrine\Persistence\Mapping\ClassMetadata::$discriminatorColumn.
Static Analysis with PHPStan (8.1): src/Metadata/Driver/DoctrineTypeDriver.php#L54
Call to method isInheritanceTypeNone() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.
Static Analysis with PHPStan (8.1): src/Metadata/Driver/DoctrineTypeDriver.php#L54
Class Doctrine\ORM\Mapping\ClassMetadataInfo not found.
Static Analysis with PHPStan (8.1): tests/Metadata/Driver/DoctrineDriverTest.php#L144
Instantiated class Doctrine\ORM\Mapping\Driver\AnnotationDriver not found.
Static Analysis with PHPStan (8.1): tests/Metadata/Driver/DoctrinePHPCRDriverTest.php#L105
Instantiated class Doctrine\ODM\PHPCR\Mapping\Driver\AnnotationDriver not found.
Static Analysis with PHPStan (8.1): tests/Serializer/Doctrine/IntegrationTest.php#L146
Instantiated class Doctrine\ORM\Mapping\Driver\AnnotationDriver not found.
Static Analysis with PHPStan (8.1): tests/Serializer/Doctrine/IntegrationTest.php#L204
Call to an undefined method Doctrine\ORM\Configuration::getEntityNamespace().
Static Analysis with PHPStan (8.0)
The job was canceled because "_8_2" failed.
Static Analysis with PHPStan (8.0)
Ignored error pattern #Constructor of class JMS\\Serializer\\Annotation\\.*? has an unused parameter# was not matched in reported errors.
Static Analysis with PHPStan (8.0)
The operation was canceled.
Static Analysis with PHPStan (7.4)
The job was canceled because "_8_2" failed.
Static Analysis with PHPStan (7.4): tests/Fixtures/TypedProperties/ComplexDiscriminatedUnion.php#L21
Method JMS\Serializer\Tests\Fixtures\TypedProperties\ComplexDiscriminatedUnion::getData() uses native union types but they're supported only on PHP 8.0 and later.
Static Analysis with PHPStan (7.4): tests/Fixtures/TypedProperties/ComplexUnionTypedProperties.php#L20
Method JMS\Serializer\Tests\Fixtures\TypedProperties\ComplexUnionTypedProperties::getData() uses native union types but they're supported only on PHP 8.0 and later.
Static Analysis with PHPStan (7.4): tests/Fixtures/TypedProperties/MappedComplexDiscriminatedUnion.php#L21
Method JMS\Serializer\Tests\Fixtures\TypedProperties\MappedComplexDiscriminatedUnion::getData() uses native union types but they're supported only on PHP 8.0 and later.
Static Analysis with PHPStan (7.4)
Ignored error pattern #Constructor of class JMS\\Serializer\\Annotation\\.*? has an unused parameter# was not matched in reported errors.
Static Analysis with PHPStan (7.4)
The operation was canceled.
Static Analysis with PHPStan (8.2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Static Analysis with PHPStan (8.2)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Static Analysis with PHPStan (8.2)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Static Analysis with PHPStan (8.2)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Static Analysis with PHPStan (8.2)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Static Analysis with PHPStan (8.1)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Static Analysis with PHPStan (8.0)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Static Analysis with PHPStan (7.4)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Static Analysis with PHPStan (7.4)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Static Analysis with PHPStan (7.4)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/