From c15b3eda9ca6bb60e72805403465408316084fc8 Mon Sep 17 00:00:00 2001 From: Aidan Date: Thu, 28 Nov 2024 23:42:33 +0000 Subject: [PATCH] Herd is available for Windows, this update enables certificate checking in the Herd for Windows Certificates folder. --- src/Certificate.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Certificate.php b/src/Certificate.php index 4d69ebd3..5652ded9 100644 --- a/src/Certificate.php +++ b/src/Certificate.php @@ -50,6 +50,10 @@ public static function paths(): array */ public static function herdPath(): string { + if (PHP_OS_FAMILY === 'Windows') { + return implode(DIRECTORY_SEPARATOR, [getenv('USERPROFILE') ?: $_SERVER['HOME'] ?? '', '.config', 'herd', 'config', 'valet', 'Certificates', '']); + } + return implode(DIRECTORY_SEPARATOR, [$_SERVER['HOME'] ?? '', 'Library', 'Application Support', 'Herd', 'config', 'valet', 'Certificates', '']); }