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);