ReferenceMany: insert an empty array #972
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
13 errors and 4 warnings
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)
|
RedundantCondition:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L246
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:246:21: RedundantCondition: Type SimpleXMLElement for $field->generator-option is always isset (see https://psalm.dev/122)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L261
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:261: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 PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L295
Parameter #2 $mapping of method Doctrine\ODM\MongoDB\Mapping\Driver\XmlDriver::addFieldMapping() expects array{type?: string, fieldName?: string, name?: string, strategy?: string, association?: int, id?: bool, isOwningSide?: bool, collectionClass?: class-string, ...}, array<string, non-empty-array<int, string>|bool|string> given.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Proxy/Factory/StaticProxyFactory.php#L98
Method Doctrine\ODM\MongoDB\Proxy\Factory\StaticProxyFactory::createInitializer() should return Closure(ProxyManager\Proxy\GhostObjectInterface<TDocument>&TDocument=, string=, array<string, mixed>=, Closure|null=, array<string, mixed>=): bool but returns Closure(ProxyManager\Proxy\GhostObjectInterface, string, array, mixed, array): true.
|
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.
|
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.2)
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.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/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
composer.lock
Expired
|
212 KB |
|