From 484b9304bc536f6fe6656d4f5910caed06c7a426 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Sun, 15 Mar 2026 21:04:04 +0000 Subject: [PATCH] feat: add conditional return type to getEnv Co-Authored-By: Claude Sonnet 4.6 --- src/System/System.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/System/System.php b/src/System/System.php index ca8b1da..d692103 100644 --- a/src/System/System.php +++ b/src/System/System.php @@ -530,9 +530,9 @@ public static function getNetworkUsage(int $duration = 1): array } /** - * Checks if the system is running on an ARM64 architecture. - * - * @return string|null + * @template TDefault of string|null + * @param TDefault $default + * @return ($default is null ? string|null : string) */ public static function getEnv(string $name, ?string $default = null): ?string {