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