From b63471906fbf1106e3c01328aece650b6cfd01eb Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Tue, 1 Apr 2025 09:41:28 +0300 Subject: [PATCH 1/2] Fix typo in `UNAVAILABLE` exit code reason --- CHANGELOG.md | 2 +- src/ExitCode.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54132d0f..2a934255 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 2.3.1 under development -- no changes in this release. +- 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', From b81914a759904dde153bdc5a50908b68cc67c643 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Tue, 1 Apr 2025 09:43:56 +0300 Subject: [PATCH 2/2] fix --- tests/ExitCodeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],