From 0e8eb5802a7464311568bcbfbcd915de546a047a Mon Sep 17 00:00:00 2001 From: butterd Date: Sat, 7 Dec 2024 13:18:03 +0100 Subject: [PATCH] [doc]remove prepended doubleslash in exceptionmessage #1615 --- src/Generator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index 6bc750981..fbadc1bca 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -63,7 +63,7 @@ public function generateClass(string $className, string $templateName, array $va $targetPath = $this->fileManager->getRelativePathForFutureClass($className); if (null === $targetPath) { - throw new \LogicException(\sprintf('Could not determine where to locate the new class "%s", maybe try with a full namespace like "\\My\\Full\\Namespace\\%s"', $className, Str::getShortClassName($className))); + throw new \LogicException(\sprintf('Could not determine where to locate the new class "%s", maybe try with a full namespace like "My\\Full\\Namespace\\%s"', $className, Str::getShortClassName($className))); } $variables = array_merge($variables, [ @@ -97,7 +97,7 @@ final public function generateClassFromClassData(ClassData $classData, string $t $targetPath = $this->fileManager->getRelativePathForFutureClass($classData->getFullClassName()); if (null === $targetPath) { - throw new \LogicException(\sprintf('Could not determine where to locate the new class "%s", maybe try with a full namespace like "\\My\\Full\\Namespace\\%s"', $classData->getFullClassName(), $classData->getClassName())); + throw new \LogicException(\sprintf('Could not determine where to locate the new class "%s", maybe try with a full namespace like "My\\Full\\Namespace\\%s"', $classData->getFullClassName(), $classData->getClassName())); } $globalTemplateVars = ['class_data' => $classData];