From defd50f459b6527f48d983e17f62c2913f3981b0 Mon Sep 17 00:00:00 2001 From: henderkes Date: Tue, 12 May 2026 11:17:31 +0700 Subject: [PATCH] wrong exception type --- src/StaticPHP/Registry/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StaticPHP/Registry/Registry.php b/src/StaticPHP/Registry/Registry.php index 516c7991..2cd119ec 100644 --- a/src/StaticPHP/Registry/Registry.php +++ b/src/StaticPHP/Registry/Registry.php @@ -101,7 +101,7 @@ class Registry } elseif (str_contains(rtrim(FileSystem::convertPath($base), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR)) { logger()->debug("Registry autoload not present, relying on consumer autoloader: {$autoload_path}"); } else { - throw new FileSystemException("Path does not exist: {$autoload_path}"); + throw new RegistryException("Path does not exist: {$autoload_path}"); } }