Fix missing dependencies #657
Annotations
13 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)
|
MissingPropertyType:
src/Command/ControllerCommand.php#L25
src/Command/ControllerCommand.php:25:22: MissingPropertyType: Property Yiisoft\Yii\Gii\Command\ControllerCommand::$defaultName does not have a declared type - consider string (see https://psalm.dev/045)
|
PossiblyInvalidArgument:
src/Controller/DefaultController.php#L42
src/Controller/DefaultController.php:42:17: PossiblyInvalidArgument: Parameter 1 of closure passed to function array_map expects class-string<Yiisoft\Yii\Gii\GeneratorCommandInterface>, but possibly different type class-string<Yiisoft\Yii\Gii\GeneratorInterface> provided (see https://psalm.dev/092)
|
InvalidArgument:
src/Controller/DefaultController.php#L60
src/Controller/DefaultController.php:60: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#L106
src/Controller/DefaultController.php:106: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#L169
src/Controller/DefaultController.php:169:25: UndefinedMethod: Method Yiisoft\Yii\Gii\GeneratorCommandInterface::getcommandclass does not exist (see https://psalm.dev/022)
|
InvalidStringClass:
src/Controller/DefaultController.php#L174
src/Controller/DefaultController.php:174:23: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
InvalidStringClass:
src/Controller/DefaultController.php#L175
src/Controller/DefaultController.php:175:18: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
InvalidStringClass:
src/Controller/DefaultController.php#L176
src/Controller/DefaultController.php:176:19: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
ArgumentTypeCoercion:
src/Controller/DefaultController.php#L178
src/Controller/DefaultController.php:178:43: ArgumentTypeCoercion: Argument 1 of ReflectionClass::__construct expects class-string|object|trait-string, but parent type object|string provided (see https://psalm.dev/193)
|
psalm / PHP 8.1-ubuntu-latest
The job was canceled because "ubuntu-latest_8_2" failed.
|
psalm / PHP 8.1-ubuntu-latest
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires symfony/console ^7.1 -> satisfiable by symfony/console[v7.1.0-BETA1, ..., 7.2.x-dev].
- symfony/console[v7.1.0-BETA1, ..., 7.2.x-dev] require php >=8.2 -> your php version (8.1.29) does not satisfy that requirement.
Problem 2
- yiisoft/yii-console[2.1.2, ..., 2.2.0] require symfony/console ^5.4|^6.0|^7.0 -> satisfiable by symfony/console[v7.1.0-BETA1, ..., 7.2.x-dev].
- yiisoft/yii-console[2.0.0, ..., 2.1.1] require symfony/console ^5.4|^6.0 -> found symfony/console[v5.4.0-BETA1, ..., 5.4.x-dev, v6.0.0-BETA1, ..., 6.4.x-dev] but it conflicts with your root composer.json require (^7.1).
- symfony/console[v7.1.0-BETA1, ..., 7.2.x-dev] require php >=8.2 -> your php version (8.1.29) does not satisfy that requirement.
- Root composer.json requires yiisoft/yii-console ^2.0 -> satisfiable by yiisoft/yii-console[2.0.0, ..., 2.2.0].
|
psalm / PHP 8.1-ubuntu-latest
Process completed with exit code 2.
|