feat: add AR::make() method #7
Annotations
13 errors
phpstan (ubuntu-latest, 8.2, locked):
src/ActiveRecord.php#L41
Method Cycle\ActiveRecord\ActiveRecord::make() should return static(Cycle\ActiveRecord\ActiveRecord) but returns object.
|
phpstan (ubuntu-latest, 8.2, locked):
tests/src/Functional/ActiveRecordTest.php#L61
Call to static method PHPUnit\Framework\Assert::assertInstanceOf() with 'Cycle\\App\\Entity\\User' and Cycle\App\Entity\User will always evaluate to true.
|
phpstan (ubuntu-latest, 8.2, locked)
Process completed with exit code 1.
|
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#L57
tests/src/Functional/ActiveRecordTest.php:57:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_creates_entity_instance_using_make (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L70
tests/src/Functional/ActiveRecordTest.php:70: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#L86
tests/src/Functional/ActiveRecordTest.php:86: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#L108
tests/src/Functional/ActiveRecordTest.php:108:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_persists_multiple_entities (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L132
tests/src/Functional/ActiveRecordTest.php:132:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_deletes_entity (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
tests/src/Functional/ActiveRecordTest.php#L145
tests/src/Functional/ActiveRecordTest.php:145:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_deletes_multiple_entities_using_remove_method (see https://psalm.dev/087)
|