Allow multiple relationships to a target entity. #1447
Annotations
10 errors and 3 warnings
PHPStan:
src/Collection/AuditedCollection.php#L169
Parameter #1 $offset of method SimpleThings\EntityAudit\Collection\AuditedCollection<TKey of (int|string),T of object>::offsetGet() expects TKey of (int|string), int|string given.
|
PHPStan:
src/Metadata/MetadataFactory.php#L31
Call to function array_filter() requires parameter #2 to be passed to avoid loose comparison semantics.
|
PHPStan:
tests/Fixtures/Relation/ManyToManyMultipleRelationshipEntity.php#L43
Property Sonata\EntityAuditBundle\Tests\Fixtures\Relation\ManyToManyMultipleRelationshipEntity::$primaryTargets (Doctrine\Common\Collections\Collection<int, Sonata\EntityAuditBundle\Tests\Fixtures\Relation\ManyToManyMultipleTargetEntity>) does not accept default value of type array{}.
|
PHPStan:
tests/Fixtures/Relation/ManyToManyMultipleRelationshipEntity.php#L74
Method Sonata\EntityAuditBundle\Tests\Fixtures\Relation\ManyToManyMultipleRelationshipEntity::getPrimaryTargets() return type has no value type specified in iterable type array.
|
PHPStan:
tests/Fixtures/Relation/ManyToManyMultipleRelationshipEntity.php#L74
Method Sonata\EntityAuditBundle\Tests\Fixtures\Relation\ManyToManyMultipleRelationshipEntity::getPrimaryTargets() return type has no value type specified in iterable type array|Doctrine\Common\Collections\Collection.
|
PHPStan:
tests/Fixtures/Relation/ManyToManyMultipleRelationshipEntity.php#L74
Method Sonata\EntityAuditBundle\Tests\Fixtures\Relation\ManyToManyMultipleRelationshipEntity::getPrimaryTargets() return type with generic interface Doctrine\Common\Collections\Collection does not specify its types: TKey, T
|
PHPStan:
tests/Fixtures/Relation/ManyToManyMultipleRelationshipEntity.php#L84
Method Sonata\EntityAuditBundle\Tests\Fixtures\Relation\ManyToManyMultipleRelationshipEntity::getSecondaryTargets() return type with generic interface Doctrine\Common\Collections\Collection does not specify its types: TKey, T
|
PHPStan
Process completed with exit code 1.
|
InvalidPropertyAssignmentValue:
tests/Fixtures/Relation/ManyToManyMultipleRelationshipEntity.php#L43
tests/Fixtures/Relation/ManyToManyMultipleRelationshipEntity.php:43:33: InvalidPropertyAssignmentValue: $this->primaryTargets with declared type 'Doctrine\Common\Collections\Collection<int, Sonata\EntityAuditBundle\Tests\Fixtures\Relation\ManyToManyMultipleTargetEntity>' cannot be assigned type 'array<never, never>' (see https://psalm.dev/145)
|
Psalm
Process completed with exit code 2.
|
PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Rector
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|