Active repository redesign #8
Annotations
14 errors
phpstan (ubuntu-latest, 8.2, locked):
src/Repository/ActiveRepository.php#L111
Template type TEntity is declared as covariant, but occurs in contravariant position in parameter select of method Cycle\ActiveRecord\Repository\ActiveRepository::with().
|
phpstan (ubuntu-latest, 8.2, locked):
src/Repository/ActiveRepository.php#L143
Template type TEntity is declared as covariant, but occurs in contravariant position in parameter role of method Cycle\ActiveRecord\Repository\ActiveRepository::initSelect().
|
phpstan (ubuntu-latest, 8.2, locked):
tests/app/Entity/User.php#L27
Return type (Cycle\App\Query\UserQuery) of method Cycle\App\Entity\User::query() should be covariant with return type (Cycle\ActiveRecord\Query\ActiveQuery<static(Cycle\ActiveRecord\ActiveRecord)>) of method Cycle\ActiveRecord\ActiveRecord::query()
|
phpstan (ubuntu-latest, 8.2, locked)
Process completed with exit code 1.
|
InvalidPropertyAssignmentValue:
src/Repository/ActiveRepository.php#L48
src/Repository/ActiveRepository.php:48:25: InvalidPropertyAssignmentValue: $this->select with declared type 'Cycle\ORM\Select<TEntity:Cycle\ActiveRecord\Repository\ActiveRepository as object>' cannot be assigned type 'Cycle\ORM\Select<object>' (see https://psalm.dev/145)
|
PossiblyUnusedMethod:
src/Repository/ActiveRepository.php#L78
src/Repository/ActiveRepository.php:78:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\ActiveRecord\Repository\ActiveRepository::findAll (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
src/Repository/ActiveRepository.php#L87
src/Repository/ActiveRepository.php:87:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\ActiveRecord\Repository\ActiveRepository::forUpdate (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L17
tests/src/Functional/ActiveRecordTest.php:17:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_finds_one_entity (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L29
tests/src/Functional/ActiveRecordTest.php:29:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_finds_all_entities (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L36
tests/src/Functional/ActiveRecordTest.php:36:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_finds_entity_by_primary_key (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L48
tests/src/Functional/ActiveRecordTest.php:48:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_uses_query_to_select_entity (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L60
tests/src/Functional/ActiveRecordTest.php:60:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_saves_entity (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L76
tests/src/Functional/ActiveRecordTest.php:76:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_triggers_exception_when_tries_to_save_entity_using_save_or_fail (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L98
tests/src/Functional/ActiveRecordTest.php:98:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_persists_multiple_entities (see https://psalm.dev/087)
|