DevKit updates for 1.x branch #1202
Annotations
7 errors
PHPStan:
src/Collection/AuditedCollection.php#L301
Return type (Doctrine\Common\Collections\ReadableCollection<TKey of (int|string), T of object>) of method SimpleThings\EntityAudit\Collection\AuditedCollection::filter() should be covariant with return type (Doctrine\Common\Collections\Collection<(int|string), object>) of method Doctrine\Common\Collections\Collection<TKey of (int|string),T of object>::filter()
|
PHPStan:
src/Collection/AuditedCollection.php#L330
Return type (Doctrine\Common\Collections\ReadableCollection<TKey of (int|string), U>) of method SimpleThings\EntityAudit\Collection\AuditedCollection::map() should be covariant with return type (Doctrine\Common\Collections\Collection<(int|string), mixed>) of method Doctrine\Common\Collections\Collection<TKey of (int|string),T of object>::map()
|
PHPStan:
src/Collection/AuditedCollection.php#L345
Return type (array{Doctrine\Common\Collections\ReadableCollection<TKey of (int|string), T of object>, Doctrine\Common\Collections\ReadableCollection<TKey of (int|string), T of object>}) of method SimpleThings\EntityAudit\Collection\AuditedCollection::partition() should be covariant with return type (array{Doctrine\Common\Collections\Collection<(int|string), object>, Doctrine\Common\Collections\Collection<(int|string), object>}) of method Doctrine\Common\Collections\Collection<TKey of (int|string),T of object>::partition()
|
PHPStan
Process completed with exit code 1.
|
ImplementedParamTypeMismatch:
src/Collection/AuditedCollection.php#L331
src/Collection/AuditedCollection.php:331:34: ImplementedParamTypeMismatch: Argument 1 of SimpleThings\EntityAudit\Collection\AuditedCollection::map has wrong type 'Closure(T:SimpleThings\EntityAudit\Collection\AuditedCollection as object):U:fn-simplethings\entityaudit\collection\auditedcollection::map as mixed', expecting 'Closure(T:Doctrine\Common\Collections\Collection as mixed):U:fn-doctrine\common\collections\collection::map as mixed' as defined by Doctrine\Common\Collections\Collection::map (see https://psalm.dev/199)
|
InvalidArgument:
src/Collection/AuditedCollection.php#L335
src/Collection/AuditedCollection.php:335:43: InvalidArgument: Argument 1 of Doctrine\Common\Collections\Collection::map expects Closure(T:Doctrine\Common\Collections\Collection as mixed):U:fn-simplethings\entityaudit\collection\auditedcollection::map as mixed, but Closure(T:SimpleThings\EntityAudit\Collection\AuditedCollection as object):U:fn-simplethings\entityaudit\collection\auditedcollection::map as mixed provided (see https://psalm.dev/004)
|
Psalm
Process completed with exit code 2.
|