From 57ef0423d52bfc78e15b9ed462ae32d1961006e1 Mon Sep 17 00:00:00 2001 From: henderkes Date: Tue, 12 May 2026 10:57:49 +0700 Subject: [PATCH] fix phpunit failure --- src/StaticPHP/Registry/Registry.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StaticPHP/Registry/Registry.php b/src/StaticPHP/Registry/Registry.php index 69c5a474..516c7991 100644 --- a/src/StaticPHP/Registry/Registry.php +++ b/src/StaticPHP/Registry/Registry.php @@ -98,8 +98,10 @@ class Registry if (file_exists($autoload_path)) { logger()->debug("Loading external autoload from: {$autoload_path}"); require_once $autoload_path; + } 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 { - logger()->warning("Registry autoload not present, relying on consumer autoloader: {$autoload_path}"); + throw new FileSystemException("Path does not exist: {$autoload_path}"); } }