Skip to content

Fix typo in UNAVAILABLE exit code reason #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 2.3.1 under development

- Enh #226: Check empty string as key in command map in `CommandLoader` validation (@vjik)
- Bug #224: Fix typo in `UNAVAILABLE` exit code reason (@vjik)

## 2.3.0 January 23, 2025

Expand Down
2 changes: 1 addition & 1 deletion src/ExitCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class ExitCode
self::NOINPUT => 'Input file not found or unreadable',
self::NOUSER => 'User not found',
self::NOHOST => 'Host not found',
self::UNAVAILABLE => 'A requied service is unavailable',
self::UNAVAILABLE => 'A required service is unavailable',
self::SOFTWARE => 'Internal error',
self::OSERR => 'Error making system call or using OS service',
self::OSFILE => 'Error accessing system file',
Expand Down
2 changes: 1 addition & 1 deletion tests/ExitCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function reasons(): array
['Input file not found or unreadable', ExitCode::NOINPUT],
['User not found', ExitCode::NOUSER],
['Host not found', ExitCode::NOHOST],
['A requied service is unavailable', ExitCode::UNAVAILABLE],
['A required service is unavailable', ExitCode::UNAVAILABLE],
['Internal error', ExitCode::SOFTWARE],
['Error making system call or using OS service', ExitCode::OSERR],
['Error accessing system file', ExitCode::OSFILE],
Expand Down
Loading