Skip to content

[6.0] chore: update to phpstan major version 2 #226

[6.0] chore: update to phpstan major version 2

[6.0] chore: update to phpstan major version 2 #226

Triggered via pull request April 27, 2026 08:42
Status Failure
Total duration 47s
Artifacts

ci.yml

on: pull_request
Matrix: unit-testing
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 12 warnings
PHPUnit (PHP 8.5): lib/Auth/Digest.php#L207
Only booleans are allowed in a ternary operator condition, array<string, int> given.
PHPUnit (PHP 8.5): lib/Auth/Digest.php#L203
Short ternary operator is not allowed. Use null coalesce operator if applicable or consider using long ternary.
PHPUnit (PHP 8.5): lib/Auth/Digest.php#L140
Only booleans are allowed in a negated boolean, int<0, 1> given.
PHPUnit (PHP 8.5): lib/Auth/Digest.php#L133
Only booleans are allowed in a negated boolean, int<0, 2> given.
PHPUnit (PHP 8.5): lib/Auth/Digest.php#L0
Ignored error pattern #^Strict comparison using !== between '' and non-empty-string will always evaluate to true.$# in path /home/runner/work/http/http/lib/Auth/Digest.php was not matched in reported errors.
PHPUnit (PHP 8.5): lib/Auth/Bearer.php#L31
Only booleans are allowed in a negated boolean, string|null given.
PHPUnit (PHP 8.5): lib/Auth/Basic.php#L42
Call to function base64_decode() requires parameter #2 to be set.
PHPUnit (PHP 8.5): lib/Auth/Basic.php#L34
Only booleans are allowed in a negated boolean, string|null given.
PHPUnit (PHP 8.5): lib/Auth/AWS.php#L98
Only booleans are allowed in a negated boolean, string|null given.
PHPUnit (PHP 8.5): lib/Auth/AWS.php#L85
Only booleans are allowed in an if condition, string|null given.
PHPUnit (PHP 7.4): lib/Auth/Digest.php#L207
Only booleans are allowed in a ternary operator condition, array<string, int> given.
PHPUnit (PHP 7.4): lib/Auth/Digest.php#L203
Short ternary operator is not allowed. Use null coalesce operator if applicable or consider using long ternary.
PHPUnit (PHP 7.4): lib/Auth/Digest.php#L140
Only booleans are allowed in a negated boolean, int<0, 1> given.
PHPUnit (PHP 7.4): lib/Auth/Digest.php#L133
Only booleans are allowed in a negated boolean, int<0, 2> given.
PHPUnit (PHP 7.4): lib/Auth/Digest.php#L0
Ignored error pattern #^Strict comparison using !== between '' and non-empty-string will always evaluate to true.$# in path /home/runner/work/http/http/lib/Auth/Digest.php was not matched in reported errors.
PHPUnit (PHP 7.4): lib/Auth/Bearer.php#L31
Only booleans are allowed in a negated boolean, string|null given.
PHPUnit (PHP 7.4): lib/Auth/Basic.php#L42
Call to function base64_decode() requires parameter #2 to be set.
PHPUnit (PHP 7.4): lib/Auth/Basic.php#L34
Only booleans are allowed in a negated boolean, string|null given.
PHPUnit (PHP 7.4): lib/Auth/AWS.php#L98
Only booleans are allowed in a negated boolean, string|null given.
PHPUnit (PHP 7.4): lib/Auth/AWS.php#L85
Only booleans are allowed in an if condition, string|null given.
PHPUnit (PHP 8.5)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHPUnit (PHP 7.4)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHPUnit (PHP 8.0)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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/
PHPUnit (PHP 8.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHPUnit (PHP 8.2)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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/
PHPUnit (PHP 8.2)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHPUnit (PHP 8.3)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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/
PHPUnit (PHP 8.3)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHPUnit (PHP 8.4)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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/
PHPUnit (PHP 8.4)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHPUnit (PHP 8.1)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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/
PHPUnit (PHP 8.1)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/