Support mapping time series collections #1497
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
5 errors
RedundantCondition:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L340
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:340:13: RedundantCondition: Type SimpleXMLElement for $xmlRoot->also-load-methods is always isset (see https://psalm.dev/122)
|
TypeDoesNotContainType:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L346
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:346:15: TypeDoesNotContainType: Cannot resolve types for $xmlRoot->time-series with type SimpleXMLElement and !isset assertion (see https://psalm.dev/056)
|
InvalidArgument:
tests/Doctrine/ODM/MongoDB/Tests/SchemaManagerTest.php#L785
tests/Doctrine/ODM/MongoDB/Tests/SchemaManagerTest.php:785:37: InvalidArgument: Argument 1 of Doctrine\ODM\MongoDB\Tests\SchemaManagerTest::writeOptions expects array{background?: bool, bits?: int, default_language?: string, expireAfterSeconds?: int, language_override?: string, max?: float, min?: float, name?: string, partialFilterExpression?: array<array-key, mixed>, sparse?: bool, storageEngine?: array<array-key, mixed>, textIndexVersion?: int, unique?: bool, weights?: list{string, int}}, but array{background?: bool, bits?: int, default_language?: string, expireAfterSeconds: 86400, language_override?: string, max?: float, min?: float, name?: string, partialFilterExpression?: array<array-key, mixed>, sparse?: bool, storageEngine?: array<array-key, mixed>, textIndexVersion?: int, timeseries: array{granularity: 'seconds', metaField: 'metadata', timeField: 'time'}, unique?: bool, weights?: list{string, int}} with additional array shape fields (timeseries) was provided (see https://psalm.dev/004)
|
UnusedBaselineEntry:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L1
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:0:0: UnusedBaselineEntry: Baseline for issue "TypeDoesNotContainType" has 1 extra entry. (see https://psalm.dev/316)
|
Static Analysis with Psalm (8.2)
Process completed with exit code 2.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
composer-lock-static-analysis-phpstan
Expired
|
23.7 KB |
|
composer-lock-static-analysis-psalm
Expired
|
23.7 KB |
|