Skip to content

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

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

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

Triggered via pull request April 14, 2024 14:09
Status Cancelled
Total duration 9m 10s
Artifacts

ci.yml

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

Annotations

5 errors and 4 warnings
InvalidReturnType: src/Utility/Hash.php#L397
src/Utility/Hash.php:397: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#L449
src/Utility/Hash.php:449: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.
Windows - PHP 8.1 & SQL Server
The run was canceled by @github-actions[bot].
Windows - PHP 8.1 & SQL Server
The operation was canceled.
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