Skip to content

Update to latest PHP 8.1 syntax #542

Update to latest PHP 8.1 syntax

Update to latest PHP 8.1 syntax #542

Triggered via pull request November 2, 2024 08:11
Status Failure
Total duration 3m 0s
Artifacts

continuous-integration.yml

on: pull_request
ci  /  Generate job matrix
5s
ci / Generate job matrix
Matrix: ci / QA Checks
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PossiblyInvalidArrayAssignment: src/ArrayObject.php#L177
src/ArrayObject.php:177:9: PossiblyInvalidArrayAssignment: Cannot access array value on non-array variable $this->storage of type object (see https://psalm.dev/118)
PossiblyInvalidArgument: src/ArrayObject.php#L187
src/ArrayObject.php:187:15: PossiblyInvalidArgument: Argument 1 of asort expects array<array-key, mixed>, but possibly different type (array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object provided (see https://psalm.dev/092)
ArgumentTypeCoercion: src/ArrayObject.php#L198
src/ArrayObject.php:198:22: ArgumentTypeCoercion: Argument 1 of count expects Countable|array<array-key, mixed>, but parent type (array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object provided (see https://psalm.dev/193)
InvalidReturnType: src/ArrayObject.php#L205
src/ArrayObject.php:205:16: InvalidReturnType: The declared return type 'array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>' for Laminas\Stdlib\ArrayObject::exchangeArray is incorrect, got '(array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object' (see https://psalm.dev/011)
InvalidReturnStatement: src/ArrayObject.php#L226
src/ArrayObject.php:226:16: InvalidReturnStatement: The inferred type '(array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object' does not match the declared return type 'array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>' for Laminas\Stdlib\ArrayObject::exchangeArray (see https://psalm.dev/128)
InvalidReturnType: src/ArrayObject.php#L232
src/ArrayObject.php:232:16: InvalidReturnType: The declared return type 'array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>' for Laminas\Stdlib\ArrayObject::getArrayCopy is incorrect, got '(array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object' (see https://psalm.dev/011)
InvalidReturnStatement: src/ArrayObject.php#L236
src/ArrayObject.php:236:16: InvalidReturnStatement: The inferred type '(array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object' does not match the declared return type 'array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>' for Laminas\Stdlib\ArrayObject::getArrayCopy (see https://psalm.dev/128)
PossiblyInvalidArgument: src/ArrayObject.php#L279
src/ArrayObject.php:279:15: PossiblyInvalidArgument: Argument 1 of ksort expects array<array-key, mixed>, but possibly different type (array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/ArrayObject.php#L289
src/ArrayObject.php:289:21: PossiblyInvalidArgument: Argument 1 of natcasesort expects array<array-key, mixed>, but possibly different type (array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/ArrayObject.php#L299
src/ArrayObject.php:299:17: PossiblyInvalidArgument: Argument 1 of natsort expects array<array-key, mixed>, but possibly different type (array<TKey:Laminas\Stdlib\ArrayObject as array-key, TValue:Laminas\Stdlib\ArrayObject as mixed>)|object provided (see https://psalm.dev/092)