Skip to content

Support parameters name binding #649

Support parameters name binding

Support parameters name binding #649

Triggered via push February 13, 2024 16:01
Status Failure
Total duration 35s
Artifacts

static.yml

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

Annotations

12 errors
ArgumentTypeCoercion: src/DefinitionStorage.php#L111
src/DefinitionStorage.php:111:64: ArgumentTypeCoercion: Argument 1 of Yiisoft\Definitions\ArrayDefinition::fromConfig expects array{'__construct()'?: array<array-key, mixed>, class: class-string}<string, mixed>, but parent type array{'__construct()': non-empty-array<string, Yiisoft\Definitions\Reference>, class: null|string} provided (see https://psalm.dev/193)
PossiblyNullArrayOffset: src/DefinitionStorage.php#L118
src/DefinitionStorage.php:118:17: PossiblyNullArrayOffset: Cannot access value on variable $this->definitions[$buildingClass] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: src/DefinitionStorage.php#L120
src/DefinitionStorage.php:120:17: PossiblyNullArrayOffset: Cannot access value on variable $this->definitions[$buildingClass] using possibly null offset null|string (see https://psalm.dev/125)
RedundantCondition: src/Helpers/Normalizer.php#L95
src/Helpers/Normalizer.php:95:13: RedundantCondition: $definition is not Yiisoft\Definitions\Contract\DefinitionInterface has already been asserted (see https://psalm.dev/122)
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.
ArgumentTypeCoercion: src/DefinitionStorage.php#L111
src/DefinitionStorage.php:111:64: ArgumentTypeCoercion: Argument 1 of Yiisoft\Definitions\ArrayDefinition::fromConfig expects array{'__construct()'?: array<array-key, mixed>, class: class-string, ...<string, mixed>}, but parent type array{'__construct()': non-empty-array<string, Yiisoft\Definitions\Reference>, class: null|string} provided (see https://psalm.dev/193)
PossiblyNullArrayOffset: src/DefinitionStorage.php#L118
src/DefinitionStorage.php:118:17: PossiblyNullArrayOffset: Cannot access value on variable $this->definitions[$buildingClass] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: src/DefinitionStorage.php#L120
src/DefinitionStorage.php:120:17: PossiblyNullArrayOffset: Cannot access value on variable $this->definitions[$buildingClass] using possibly null offset null|string (see https://psalm.dev/125)
RiskyTruthyFalsyComparison: src/Helpers/ArrayDefinitionHelper.php#L20
src/Helpers/ArrayDefinitionHelper.php:20:19: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RedundantCondition: src/Helpers/Normalizer.php#L95
src/Helpers/Normalizer.php:95:13: RedundantCondition: $definition is not Yiisoft\Definitions\Contract\DefinitionInterface has already been asserted (see https://psalm.dev/122)
psalm / PHP 8.1-ubuntu-latest
The operation was canceled.