Skip to content

Merge branch 'master' into crud #612

Merge branch 'master' into crud

Merge branch 'master' into crud #612

Triggered via push February 24, 2024 13:41
Status Failure
Total duration 40s
Artifacts

static.yml

on: push
Matrix: psalm / psalm
Fit to window
Zoom out
Zoom in

Annotations

21 errors
RiskyTruthyFalsyComparison: src/Command/BaseGenerateCommand.php#L123
src/Command/BaseGenerateCommand.php:123:13: RiskyTruthyFalsyComparison: Operand of type bool|mixed|null|string contains types mixed|string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Controller/DefaultController.php#L95
src/Controller/DefaultController.php:95:35: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
InvalidArrayOffset: src/Generator/ActiveRecord/default/model.php#L26
src/Generator/ActiveRecord/default/model.php:26:9: InvalidArrayOffset: Cannot access value on variable $property using offset value of 'isAllowNull', expecting int (see https://psalm.dev/115)
InvalidArrayOffset: src/Generator/ActiveRecord/default/model.php#L27
src/Generator/ActiveRecord/default/model.php:27:9: InvalidArrayOffset: Cannot access value on variable $property using offset value of 'type', expecting int (see https://psalm.dev/115)
InvalidArrayOffset: src/Generator/ActiveRecord/default/model.php#L28
src/Generator/ActiveRecord/default/model.php:28:9: InvalidArrayOffset: Cannot access value on variable $property using offset value of 'name', expecting int (see https://psalm.dev/115)
ArgumentTypeCoercion: src/Generator/CRUD/Generator.php#L73
src/Generator/CRUD/Generator.php:73:55: ArgumentTypeCoercion: Argument 1 of Yiisoft\ActiveRecord\ActiveRecordFactory::createAR expects class-string<Yiisoft\ActiveRecord\ActiveRecordInterface>, but parent type string provided (see https://psalm.dev/193)
UndefinedGlobalVariable: src/Generator/CRUD/default/controller.php#L13
src/Generator/CRUD/default/controller.php:13:50: UndefinedGlobalVariable: Cannot find referenced variable $command in global scope (see https://psalm.dev/127)
MissingDocblockType: src/Generator/CRUD/default/controller.php#L23
src/Generator/CRUD/default/controller.php:23:1: MissingDocblockType: Misplaced variable (see https://psalm.dev/110)
UndefinedGlobalVariable: src/Generator/CRUD/default/controller.php#L28
src/Generator/CRUD/default/controller.php:28:15: UndefinedGlobalVariable: Cannot find referenced variable $command in global scope (see https://psalm.dev/127)
UndefinedGlobalVariable: src/Generator/CRUD/default/controller.php#L42
src/Generator/CRUD/default/controller.php:42:10: UndefinedGlobalVariable: Cannot find referenced variable $command in global scope (see https://psalm.dev/127)
psalm / PHP 8.2-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
RiskyTruthyFalsyComparison: src/Command/BaseGenerateCommand.php#L123
src/Command/BaseGenerateCommand.php:123:13: RiskyTruthyFalsyComparison: Operand of type bool|mixed|null|string contains types mixed|string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Controller/DefaultController.php#L95
src/Controller/DefaultController.php:95:35: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
InvalidArrayOffset: src/Generator/ActiveRecord/default/model.php#L26
src/Generator/ActiveRecord/default/model.php:26:9: InvalidArrayOffset: Cannot access value on variable $property using offset value of 'isAllowNull', expecting int (see https://psalm.dev/115)
InvalidArrayOffset: src/Generator/ActiveRecord/default/model.php#L27
src/Generator/ActiveRecord/default/model.php:27:9: InvalidArrayOffset: Cannot access value on variable $property using offset value of 'type', expecting int (see https://psalm.dev/115)
InvalidArrayOffset: src/Generator/ActiveRecord/default/model.php#L28
src/Generator/ActiveRecord/default/model.php:28:9: InvalidArrayOffset: Cannot access value on variable $property using offset value of 'name', expecting int (see https://psalm.dev/115)
ArgumentTypeCoercion: src/Generator/CRUD/Generator.php#L73
src/Generator/CRUD/Generator.php:73:55: ArgumentTypeCoercion: Argument 1 of Yiisoft\ActiveRecord\ActiveRecordFactory::createAR expects class-string<Yiisoft\ActiveRecord\ActiveRecordInterface>, but parent type string provided (see https://psalm.dev/193)
UndefinedGlobalVariable: src/Generator/CRUD/default/controller.php#L13
src/Generator/CRUD/default/controller.php:13:50: UndefinedGlobalVariable: Cannot find referenced variable $command in global scope (see https://psalm.dev/127)
MissingDocblockType: src/Generator/CRUD/default/controller.php#L23
src/Generator/CRUD/default/controller.php:23:1: MissingDocblockType: Misplaced variable (see https://psalm.dev/110)
UndefinedGlobalVariable: src/Generator/CRUD/default/controller.php#L28
src/Generator/CRUD/default/controller.php:28:15: UndefinedGlobalVariable: Cannot find referenced variable $command in global scope (see https://psalm.dev/127)
UndefinedGlobalVariable: src/Generator/CRUD/default/controller.php#L42
src/Generator/CRUD/default/controller.php:42:10: UndefinedGlobalVariable: Cannot find referenced variable $command in global scope (see https://psalm.dev/127)