Skip to content

Add native type to private properties and final classes #1428

Add native type to private properties and final classes

Add native type to private properties and final classes #1428

Triggered via pull request July 2, 2024 10:53
Status Failure
Total duration 1m 2s
Artifacts 2

static-analysis.yml

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

Annotations

8 errors
RedundantPropertyInitializationCheck: lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php#L285
lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php:285:15: RedundantPropertyInitializationCheck: Property $this->dm with type Doctrine\ODM\MongoDB\DocumentManager should already be set in the constructor (see https://psalm.dev/261)
RedundantPropertyInitializationCheck: lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php#L646
lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php:646:13: RedundantPropertyInitializationCheck: Property $this->uow with type Doctrine\ODM\MongoDB\UnitOfWork should already be set in the constructor (see https://psalm.dev/261)
RedundantCondition: lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php#L646
lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php:646:13: RedundantCondition: Type Doctrine\ODM\MongoDB\UnitOfWork for $this->uow is always isset (see https://psalm.dev/122)
RedundantPropertyInitializationCheck: lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php#L695
lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php:695:13: RedundantPropertyInitializationCheck: Property $this->uow with type Doctrine\ODM\MongoDB\UnitOfWork should already be set in the constructor (see https://psalm.dev/261)
RedundantCondition: lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php#L695
lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php:695:13: RedundantCondition: Type Doctrine\ODM\MongoDB\UnitOfWork for $this->uow is always isset (see https://psalm.dev/122)
RedundantCondition: lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php#L726
lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php:726:16: RedundantCondition: Type Doctrine\ODM\MongoDB\DocumentManager for $this->dm is never falsy (see https://psalm.dev/122)
RedundantCondition: lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php#L726
lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php:726:32: RedundantCondition: Operand of type Doctrine\ODM\MongoDB\DocumentManager is always truthy (see https://psalm.dev/122)
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.6 KB
composer-lock-static-analysis-psalm Expired
23.6 KB