Introduce ClassMetadataFactoryInterface to allow switching implementations #981
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
10 errors and 4 warnings
TypeDoesNotContainType:
lib/Doctrine/ODM/MongoDB/Configuration.php#L422
lib/Doctrine/ODM/MongoDB/Configuration.php:422:15: TypeDoesNotContainType: Type ReflectionClass<Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactoryInterface> for ReflectionClass<Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactoryInterface> is always !ReflectionClass<Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactoryInterface&Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactoryInterface> (see https://psalm.dev/056)
|
ImplementedReturnTypeMismatch:
lib/Doctrine/ODM/MongoDB/DocumentManager.php#L226
lib/Doctrine/ODM/MongoDB/DocumentManager.php:226:16: ImplementedReturnTypeMismatch: The inherited return type 'Doctrine\Persistence\Mapping\ClassMetadataFactory<Doctrine\Persistence\Mapping\ClassMetadata<object>>' for Doctrine\Persistence\ObjectManager::getMetadataFactory is different to the implemented return type for Doctrine\ODM\MongoDB\DocumentManager::getmetadatafactory 'Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactoryInterface' (see https://psalm.dev/123)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L169
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:169:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L174
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:174:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L183
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:183:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L187
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:187:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L193
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:193:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L197
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:197:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L223
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:223:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'read-only'?: mixed, 'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L227
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:227:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'read-only'?: mixed, 'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
Static Analysis with Psalm (8.1)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1, actions/upload-artifact@v2. 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 Psalm (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.1)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, ramsey/composer-install@v1, actions/upload-artifact@v2. 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.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/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
composer.lock
Expired
|
212 KB |
|