diff --git a/src/Caching/Opcache.php b/src/Caching/Opcache.php index 516fd4e..924674d 100644 --- a/src/Caching/Opcache.php +++ b/src/Caching/Opcache.php @@ -34,7 +34,7 @@ class Opcache implements Cache { $compiledContext = $this->compiled[$viewPath]; - $fullName = isset($compiledContext['namespace']) ? "\\{$compiledContext['namespace']}\\{$compiledContext['classname']}" : $compiledContext['classname']; + $fullName = isset($compiledContext['namespace']) ? "\\{$compiledContext['namespace']}\\{$compiledContext['classname']}" : ($compiledContext['classname'] ?? $viewPath); return new $fullName(...$arguments); }