Add strict type declarations and modernize codebase (#63) #244
php.yml
on: push
Matrix: PHP / Lint
Matrix: PHP / Static analysis
Matrix: PHP / Test
Annotations
40 errors and 12 warnings
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/Filter.php#L262
Parameter #1 $callback of function array_map expects (callable(mixed): mixed)|null, 'strtolower' given.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/Filter.php#L261
PHPDoc tag `@var` with type array<string>|string is not subtype of native type array|lowercase-string|null.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/Filter.php#L236
Parameter #1 $callback of function array_map expects (callable(mixed): mixed)|null, 'strtolower' given.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/Filter.php#L235
PHPDoc tag `@var` with type array<string>|string is not subtype of native type array|lowercase-string|null.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/Filter.php#L204
Parameter #1 $column of method ipl\Stdlib\Filter::extractValue() expects string, array<string>|string given.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/Filter.php#L162
Parameter #1 $column of method ipl\Stdlib\Filter::extractValue() expects string, array<string>|string given.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/Filter.php#L0
Ignored error pattern #^Dead catch \- Throwable is never thrown in the try block\.$# in path /home/runner/work/ipl-stdlib/ipl-stdlib/src/Filter.php was not matched in reported errors.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/Events.php#L8
Trait ipl\Stdlib\Events is used zero times and is not analysed.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/EventEmitter.php#L6
Trait ipl\Stdlib\EventEmitter is used zero times and is not analysed.
|
|
PHP / Static analysis (8.2) / PHPStan 8.2:
src/BaseFilter.php#L7
Trait ipl\Stdlib\BaseFilter is used zero times and is not analysed.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/Filter.php#L262
Parameter #1 $callback of function array_map expects (callable(mixed): mixed)|null, 'strtolower' given.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/Filter.php#L261
PHPDoc tag `@var` with type array<string>|string is not subtype of native type array|lowercase-string|null.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/Filter.php#L236
Parameter #1 $callback of function array_map expects (callable(mixed): mixed)|null, 'strtolower' given.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/Filter.php#L235
PHPDoc tag `@var` with type array<string>|string is not subtype of native type array|lowercase-string|null.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/Filter.php#L204
Parameter #1 $column of method ipl\Stdlib\Filter::extractValue() expects string, array<string>|string given.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/Filter.php#L162
Parameter #1 $column of method ipl\Stdlib\Filter::extractValue() expects string, array<string>|string given.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/Filter.php#L0
Ignored error pattern #^Dead catch \- Throwable is never thrown in the try block\.$# in path /home/runner/work/ipl-stdlib/ipl-stdlib/src/Filter.php was not matched in reported errors.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/Events.php#L8
Trait ipl\Stdlib\Events is used zero times and is not analysed.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/EventEmitter.php#L6
Trait ipl\Stdlib\EventEmitter is used zero times and is not analysed.
|
|
PHP / Static analysis (8.4) / PHPStan 8.4:
src/BaseFilter.php#L7
Trait ipl\Stdlib\BaseFilter is used zero times and is not analysed.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/Filter.php#L262
Parameter #1 $callback of function array_map expects (callable(mixed): mixed)|null, 'strtolower' given.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/Filter.php#L261
PHPDoc tag `@var` with type array<string>|string is not subtype of native type array|lowercase-string|null.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/Filter.php#L236
Parameter #1 $callback of function array_map expects (callable(mixed): mixed)|null, 'strtolower' given.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/Filter.php#L235
PHPDoc tag `@var` with type array<string>|string is not subtype of native type array|lowercase-string|null.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/Filter.php#L204
Parameter #1 $column of method ipl\Stdlib\Filter::extractValue() expects string, array<string>|string given.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/Filter.php#L162
Parameter #1 $column of method ipl\Stdlib\Filter::extractValue() expects string, array<string>|string given.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/Filter.php#L0
Ignored error pattern #^Dead catch \- Throwable is never thrown in the try block\.$# in path /home/runner/work/ipl-stdlib/ipl-stdlib/src/Filter.php was not matched in reported errors.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/Events.php#L8
Trait ipl\Stdlib\Events is used zero times and is not analysed.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/EventEmitter.php#L6
Trait ipl\Stdlib\EventEmitter is used zero times and is not analysed.
|
|
PHP / Static analysis (8.3) / PHPStan 8.3:
src/BaseFilter.php#L7
Trait ipl\Stdlib\BaseFilter is used zero times and is not analysed.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/Filter.php#L262
Parameter #1 $callback of function array_map expects (callable(mixed): mixed)|null, 'strtolower' given.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/Filter.php#L261
PHPDoc tag `@var` with type array<string>|string is not subtype of native type array|lowercase-string|null.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/Filter.php#L236
Parameter #1 $callback of function array_map expects (callable(mixed): mixed)|null, 'strtolower' given.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/Filter.php#L235
PHPDoc tag `@var` with type array<string>|string is not subtype of native type array|lowercase-string|null.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/Filter.php#L204
Parameter #1 $column of method ipl\Stdlib\Filter::extractValue() expects string, array<string>|string given.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/Filter.php#L162
Parameter #1 $column of method ipl\Stdlib\Filter::extractValue() expects string, array<string>|string given.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/Filter.php#L0
Ignored error pattern #^Dead catch \- Throwable is never thrown in the try block\.$# in path /home/runner/work/ipl-stdlib/ipl-stdlib/src/Filter.php was not matched in reported errors.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/Events.php#L8
Trait ipl\Stdlib\Events is used zero times and is not analysed.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/EventEmitter.php#L6
Trait ipl\Stdlib\EventEmitter is used zero times and is not analysed.
|
|
PHP / Static analysis (8.5) / PHPStan 8.5:
src/BaseFilter.php#L7
Trait ipl\Stdlib\BaseFilter is used zero times and is not analysed.
|
|
PHP / Test (8.3) / PHPUnit 8.3
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Test (8.5) / PHPUnit 8.5
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Test (8.4) / PHPUnit 8.4
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Test (8.2) / PHPUnit 8.2
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Lint (8.2) / Linters 8.2
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Static analysis (8.2) / PHPStan 8.2
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Static analysis (8.4) / PHPStan 8.4
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Lint (8.5) / Linters 8.5
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Static analysis (8.3) / PHPStan 8.3
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Lint (8.4) / Linters 8.4
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Static analysis (8.5) / PHPStan 8.5
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP / Lint (8.3) / Linters 8.3
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|