Skip to content

Allow Hash::remove() to remove from ArrayAccess objects #10921

Allow Hash::remove() to remove from ArrayAccess objects

Allow Hash::remove() to remove from ArrayAccess objects #10921

Triggered via pull request April 26, 2024 04:43
Status Failure
Total duration 7m 7s
Artifacts

ci.yml

on: pull_request
Windows - PHP 8.1 & SQL Server
6m 55s
Windows - PHP 8.1 & SQL Server
Coding Standard & Static Analysis
2m 21s
Coding Standard & Static Analysis
Matrix: testsuite
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 4 warnings
Coding Standard & Static Analysis: src/Utility/Hash.php#L335
Unable to resolve the template type T in call to method static method Cake\Utility\Hash::insert()
Coding Standard & Static Analysis
Process completed with exit code 1.
InvalidReturnType: src/Utility/Hash.php#L403
src/Utility/Hash.php:403:22: InvalidReturnType: The declared return type 'ArrayAccess|array<array-key, mixed>' for Cake\Utility\Hash::remove is incorrect, got 'ArrayAccess|(T:fn-cake\utility\hash::remove as ArrayAccess|array<array-key, mixed>)|array<array-key, ArrayAccess|array<array-key, mixed>>|iterable<mixed, mixed>' (see https://psalm.dev/011)
InvalidReturnStatement: src/Utility/Hash.php#L455
src/Utility/Hash.php:455:16: InvalidReturnStatement: The inferred type 'array<array-key, ArrayAccess|array<array-key, mixed>>|iterable<mixed, mixed>' does not match the declared return type 'ArrayAccess|array<array-key, mixed>' for Cake\Utility\Hash::remove (see https://psalm.dev/128)
Coding Standard & Static Analysis
Process completed with exit code 2.
testsuite (8.1, sqlite)
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
testsuite (8.1, mariadb)
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
testsuite (8.1, pgsql)
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
testsuite (8.1, mysql, prefer-lowest)
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1