From 1c75fbc546a3d0de9eba4e59bfb358c8052277ad Mon Sep 17 00:00:00 2001 From: Jakub Mikita Date: Sun, 2 Jun 2024 15:48:12 +0200 Subject: [PATCH] fix: autoloader exclusion --- compat/src-deprecated/namespaces.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compat/src-deprecated/namespaces.php b/compat/src-deprecated/namespaces.php index 4896c74c..6dd38761 100644 --- a/compat/src-deprecated/namespaces.php +++ b/compat/src-deprecated/namespaces.php @@ -33,6 +33,10 @@ $newClass = str_replace($oldNamespace, $newNamespace, $class); + if (! class_exists($newClass)) { + break; + } + notification_deprecated_class($class, $version, $newClass); class_alias($newClass, $class);