Skip to content

Add ActiveRecord::transact() method #14

Add ActiveRecord::transact() method

Add ActiveRecord::transact() method #14

Triggered via pull request July 24, 2024 15:20
Status Failure
Total duration 40s
Artifacts

static-analysis.yml

on: pull_request
Matrix: phpstan
Matrix: psalm
Fit to window
Zoom out
Zoom in

Annotations

16 errors
phpstan (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L113
Method Cycle\ORM\EntityManagerInterface::run() invoked with 1 parameter, 0 required.
phpstan (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L143
Method Cycle\ORM\EntityManagerInterface::run() invoked with 1 parameter, 0 required.
phpstan (ubuntu-latest, 8.2, locked): src/Internal/TransactionFacade.php#L47
Method Cycle\ORM\EntityManagerInterface::run() invoked with 2 parameters, 0 required.
phpstan (ubuntu-latest, 8.2, locked): tests/src/Functional/ActiveRecordTest.php#L99
Result of method Cycle\ActiveRecord\ActiveRecord::saveOrFail() (void) is used.
phpstan (ubuntu-latest, 8.2, locked): tests/src/Functional/ActiveRecordTest.php#L101
Cannot call method isSuccess() on null.
phpstan (ubuntu-latest, 8.2, locked)
Process completed with exit code 1.
TooManyArguments: src/ActiveRecord.php#L115
src/ActiveRecord.php:115:19: TooManyArguments: Too many arguments for method Cycle\ORM\EntityManagerInterface::run - saw 1 (see https://psalm.dev/026)
TooManyArguments: src/ActiveRecord.php#L145
src/ActiveRecord.php:145:19: TooManyArguments: Too many arguments for method Cycle\ORM\EntityManagerInterface::run - saw 1 (see https://psalm.dev/026)
TooManyArguments: src/Internal/TransactionFacade.php#L47
src/Internal/TransactionFacade.php:47:24: TooManyArguments: Too many arguments for method Cycle\ORM\EntityManagerInterface::run - saw 2 (see https://psalm.dev/026)
AssignmentToVoid: tests/src/Functional/ActiveRecordTest.php#L99
tests/src/Functional/ActiveRecordTest.php:99:9: AssignmentToVoid: Cannot assign $entityManager to type void (see https://psalm.dev/121)
UnusedVariable: tests/src/Functional/ActiveRecordTest.php#L99
tests/src/Functional/ActiveRecordTest.php:99:9: UnusedVariable: $entityManager is never referenced or the value is not used (see https://psalm.dev/077)
NullReference: tests/src/Functional/ActiveRecordTest.php#L101
tests/src/Functional/ActiveRecordTest.php:101:43: NullReference: Cannot call method isSuccess on null value (see https://psalm.dev/016)
PossiblyUnusedMethod: tests/src/Functional/ActiveRecordTest.php#L109
tests/src/Functional/ActiveRecordTest.php:109:21: PossiblyUnusedMethod: Cannot find any calls to method Cycle\Tests\Functional\ActiveRecordTest::it_persists_multiple_entities_in_single_transaction (see https://psalm.dev/087)
UndefinedVariable: tests/src/Functional/ActiveRecordTest.php#L111
tests/src/Functional/ActiveRecordTest.php:111:57: UndefinedVariable: Cannot find referenced variable $userOne (see https://psalm.dev/024)
UndefinedVariable: tests/src/Functional/ActiveRecordTest.php#L121
tests/src/Functional/ActiveRecordTest.php:121:84: UndefinedVariable: Cannot find referenced variable $userOne (see https://psalm.dev/024)
UndefinedVariable: tests/src/Functional/ActiveRecordTest.php#L122
tests/src/Functional/ActiveRecordTest.php:122:47: UndefinedVariable: Cannot find referenced variable $userOne (see https://psalm.dev/024)