Skip to content

Add unit tests for various components in PhpIoCli #1

Add unit tests for various components in PhpIoCli

Add unit tests for various components in PhpIoCli #1

Triggered via pull request May 3, 2026 03:18
@hakrichTechhakrichTech
opened #5
dev
Status Failure
Total duration 38s
Artifacts

ci.yml

on: pull_request
PHPStan (level 8)
19s
PHPStan (level 8)
Code Style (dry-run)
16s
Code Style (dry-run)
Security Audit
13s
Security Audit
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 8 warnings
PHPUnit (8.2, lowest)
Process completed with exit code 127.
PHPUnit (8.3, lowest)
Process completed with exit code 127.
PHPUnit (8.3, latest)
Process completed with exit code 127.
PHPUnit (8.2, latest)
Process completed with exit code 127.
PHPUnit (8.4, latest)
Process completed with exit code 127.
PHPStan (level 8): src/ConsoleIO.php#L258
Method AlfacodeTeam\PhpIoCli\ConsoleIO::writeErrorRaw() has parameter $messages with no type specified.
PHPStan (level 8): src/ConsoleIO.php#L253
Method AlfacodeTeam\PhpIoCli\ConsoleIO::writeRaw() has parameter $messages with no type specified.
PHPStan (level 8): src/Components/TextInput.php#L76
Parameter #2 $handler of method AlfacodeTeam\PhpIoCli\Depends\Input::bind() expects Closure(AlfacodeTeam\PhpIoCli\Depends\State, string): (bool|void), Closure(mixed): int<0, max> given.
PHPStan (level 8): src/Components/TextInput.php#L75
Parameter #2 $handler of method AlfacodeTeam\PhpIoCli\Depends\Input::bind() expects Closure(AlfacodeTeam\PhpIoCli\Depends\State, string): (bool|void), Closure(mixed): 0 given.
PHPStan (level 8): src/Components/Alert.php#L57
Access to undefined constant AlfacodeTeam\PhpIoCli\Depends\Colors::WHITE.
PHPStan (level 8): src/CLIApplication.php#L145
Call to an undefined method AlfacodeTeam\PhpIoCli\AbstractCommand::isHidden().
PHPStan (level 8): src/BaseIO.php#L23
Method AlfacodeTeam\PhpIoCli\BaseIO::writeErrorRaw() has parameter $messages with no type specified.
PHPStan (level 8): src/BaseIO.php#L18
Method AlfacodeTeam\PhpIoCli\BaseIO::writeRaw() has parameter $messages with no type specified.
PHPStan (level 8): src/AbstractCommand.php#L69
Strict comparison using === between mixed and null will always evaluate to false.
PHPStan (level 8): src/AbstractCommand.php#L43
Property AlfacodeTeam\PhpIoCli\AbstractCommand::$rawTokens is never read, only written.
PHPUnit (8.2, lowest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4. 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/
Security Audit
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. 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 (8.3, lowest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4. 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/
Code Style (dry-run)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. 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 (8.3, latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4. 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 (8.2, latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4. 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 (8.4, latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4. 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/
PHPStan (level 8)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4. 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/