Skip to content

Suggestion for lazy service #1145

Suggestion for lazy service

Suggestion for lazy service #1145

Triggered via pull request March 3, 2024 08:27
Status Failure
Total duration 54s
Artifacts

static.yml

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

Annotations

18 errors
MixedAssignment: src/Container.php#L205
src/Container.php:205:10: MixedAssignment: Unable to determine the type that $definition is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/Container.php#L636
src/Container.php:636:17: MixedAssignment: Unable to determine the type that $class is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Container.php#L639
src/Container.php:639:17: MixedArgument: Argument 1 of Yiisoft\Definitions\ArrayDefinition::fromPreparedData cannot be class-string|mixed, expecting class-string (see https://psalm.dev/030)
MixedArgument: src/Container.php#L640
src/Container.php:640:17: MixedArgument: Argument 2 of Yiisoft\Definitions\ArrayDefinition::fromPreparedData cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
MixedArgument: src/Container.php#L641
src/Container.php:641:17: MixedArgument: Argument 3 of Yiisoft\Definitions\ArrayDefinition::fromPreparedData cannot be mixed, expecting array<string, array{0: string, 1: string, 2: mixed}> (see https://psalm.dev/030)
MixedAssignment: src/Container.php#L644
src/Container.php:644:13: MixedAssignment: Unable to determine the type that $preparedDefinition is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Container.php#L657
src/Container.php:657:56: MixedArgument: Argument 2 of Yiisoft\Definitions\LazyDefinition::__construct cannot be class-string|non-empty-mixed, expecting class-string (see https://psalm.dev/030)
psalm / PHP 8.0-ubuntu-latest
Process completed with exit code 2.
psalm / PHP 8.1-ubuntu-latest
The job was canceled because "ubuntu-latest_8_0" failed.
MixedAssignment: src/Container.php#L205
src/Container.php:205:10: MixedAssignment: Unable to determine the type that $definition is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/Container.php#L636
src/Container.php:636:17: MixedAssignment: Unable to determine the type that $class is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Container.php#L639
src/Container.php:639:17: MixedArgument: Argument 1 of Yiisoft\Definitions\ArrayDefinition::fromPreparedData cannot be class-string|mixed, expecting class-string (see https://psalm.dev/030)
MixedArgument: src/Container.php#L640
src/Container.php:640:17: MixedArgument: Argument 2 of Yiisoft\Definitions\ArrayDefinition::fromPreparedData cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
MixedArgument: src/Container.php#L641
src/Container.php:641:17: MixedArgument: Argument 3 of Yiisoft\Definitions\ArrayDefinition::fromPreparedData cannot be mixed, expecting array<string, array{0: string, 1: string, 2: mixed}> (see https://psalm.dev/030)
MixedAssignment: src/Container.php#L644
src/Container.php:644:13: MixedAssignment: Unable to determine the type that $preparedDefinition is being assigned to (see https://psalm.dev/032)
RiskyTruthyFalsyComparison: src/Container.php#L647
src/Container.php:647:13: RiskyTruthyFalsyComparison: Operand of type class-string|mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
MixedArgument: src/Container.php#L657
src/Container.php:657:56: MixedArgument: Argument 2 of Yiisoft\Definitions\LazyDefinition::__construct cannot be class-string|non-empty-mixed, expecting class-string (see https://psalm.dev/030)
psalm / PHP 8.1-ubuntu-latest
Process completed with exit code 2.