Apply Rector changes (CI) #646
Annotations
10 errors
Static analysis.:
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)
|
Static analysis.:
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)
|
Static analysis.:
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)
|
Static analysis.:
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)
|
Static analysis.:
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)
|
Static analysis.:
src/Controller/DefaultController.php#L174
src/Controller/DefaultController.php:174:23: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
Static analysis.:
src/Controller/DefaultController.php#L175
src/Controller/DefaultController.php:175:18: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
Static analysis.:
src/Controller/DefaultController.php#L176
src/Controller/DefaultController.php:176:19: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
Static analysis.:
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)
|
Static analysis.:
src/Controller/DefaultController.php#L196
src/Controller/DefaultController.php:196:21: UndefinedMethod: Method Yiisoft\Yii\Gii\GeneratorCommandInterface::getid does not exist (see https://psalm.dev/022)
|
Loading