diff --git a/src/Enum.php b/src/Enum.php index 56c7a72..da8da23 100644 --- a/src/Enum.php +++ b/src/Enum.php @@ -184,7 +184,7 @@ public static function allLabels(): array public static function valueToLabel($value = null) { $map = self::columnValues(1, 0); - return $value == null ? $map : ($map[$value] ?? null); + return $value === null ? $map : ($map[$value] ?? null); } /** @@ -197,7 +197,7 @@ public static function valueToLabel($value = null) public static function labelToValue(string $label = null) { $map = self::columnValues(0, 1); - return $label == null ? $map : ($map[$label] ?? null); + return $label === null ? $map : ($map[$label] ?? null); } /**