diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e182b27..0de83758 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/ExitCode.php b/src/ExitCode.php index 2aa6b3e8..e0589093 100644 --- a/src/ExitCode.php +++ b/src/ExitCode.php @@ -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', diff --git a/tests/ExitCodeTest.php b/tests/ExitCodeTest.php index d899ac29..b5d9433a 100644 --- a/tests/ExitCodeTest.php +++ b/tests/ExitCodeTest.php @@ -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],