replace magic number 0 by meaningful const

This commit is contained in:
faissaloux
2023-03-18 16:03:43 +01:00
parent 0c808736b8
commit 331585a0ba

View File

@ -31,7 +31,7 @@ final class Result
*/ */
public static function ok(): bool public static function ok(): bool
{ {
return self::exitCode() === 0; return self::exitCode() === self::SUCCESS_EXIT;
} }
/** /**