Fix lazy loading #615
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)
|
PossiblyInvalidArgument:
src/Controller/DefaultController.php#L42
src/Controller/DefaultController.php:42:40: PossiblyInvalidArgument: Parameter 1 of closure passed to function array_map expects Yiisoft\Yii\Gii\GeneratorProxy, but possibly different type Yiisoft\Yii\Gii\GeneratorInterface provided (see https://psalm.dev/092)
|
InvalidArgument:
src/Controller/DefaultController.php#L52
src/Controller/DefaultController.php:52:39: InvalidArgument: Argument 1 of Yiisoft\Yii\Gii\Controller\DefaultController::serializeGenerator expects class-string<Yiisoft\Yii\Gii\GeneratorCommandInterface>, but class-string<Yiisoft\Yii\Gii\GeneratorInterface> provided (see https://psalm.dev/004)
|
RiskyTruthyFalsyComparison:
src/Controller/DefaultController.php#L98
src/Controller/DefaultController.php:98: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)
|
UndefinedMethod:
src/Controller/DefaultController.php#L161
src/Controller/DefaultController.php:161:25: UndefinedMethod: Method Yiisoft\Yii\Gii\GeneratorCommandInterface::getcommandclass does not exist (see https://psalm.dev/022)
|
InvalidStringClass:
src/Controller/DefaultController.php#L166
src/Controller/DefaultController.php:166:23: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
InvalidStringClass:
src/Controller/DefaultController.php#L167
src/Controller/DefaultController.php:167:18: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
InvalidStringClass:
src/Controller/DefaultController.php#L168
src/Controller/DefaultController.php:168:19: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
ArgumentTypeCoercion:
src/Controller/DefaultController.php#L170
src/Controller/DefaultController.php:170:43: ArgumentTypeCoercion: Argument 1 of ReflectionClass::__construct expects class-string|object|trait-string, but parent type object|string provided (see https://psalm.dev/193)
|
UndefinedMethod:
src/Controller/DefaultController.php#L188
src/Controller/DefaultController.php:188:21: UndefinedMethod: Method Yiisoft\Yii\Gii\GeneratorCommandInterface::getid does not exist (see https://psalm.dev/022)
|
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)
|
PossiblyInvalidArgument:
src/Controller/DefaultController.php#L42
src/Controller/DefaultController.php:42:40: PossiblyInvalidArgument: Parameter 1 of closure passed to function array_map expects Yiisoft\Yii\Gii\GeneratorProxy, but possibly different type Yiisoft\Yii\Gii\GeneratorInterface provided (see https://psalm.dev/092)
|
InvalidArgument:
src/Controller/DefaultController.php#L52
src/Controller/DefaultController.php:52:39: InvalidArgument: Argument 1 of Yiisoft\Yii\Gii\Controller\DefaultController::serializeGenerator expects class-string<Yiisoft\Yii\Gii\GeneratorCommandInterface>, but class-string<Yiisoft\Yii\Gii\GeneratorInterface> provided (see https://psalm.dev/004)
|
RiskyTruthyFalsyComparison:
src/Controller/DefaultController.php#L98
src/Controller/DefaultController.php:98: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)
|
UndefinedMethod:
src/Controller/DefaultController.php#L161
src/Controller/DefaultController.php:161:25: UndefinedMethod: Method Yiisoft\Yii\Gii\GeneratorCommandInterface::getcommandclass does not exist (see https://psalm.dev/022)
|
InvalidStringClass:
src/Controller/DefaultController.php#L166
src/Controller/DefaultController.php:166:23: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
InvalidStringClass:
src/Controller/DefaultController.php#L167
src/Controller/DefaultController.php:167:18: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
InvalidStringClass:
src/Controller/DefaultController.php#L168
src/Controller/DefaultController.php:168:19: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
ArgumentTypeCoercion:
src/Controller/DefaultController.php#L170
src/Controller/DefaultController.php:170:43: ArgumentTypeCoercion: Argument 1 of ReflectionClass::__construct expects class-string|object|trait-string, but parent type object|string provided (see https://psalm.dev/193)
|
UndefinedMethod:
src/Controller/DefaultController.php#L188
src/Controller/DefaultController.php:188:21: UndefinedMethod: Method Yiisoft\Yii\Gii\GeneratorCommandInterface::getid does not exist (see https://psalm.dev/022)
|