Skip to content

Commit 0e8eb58

Browse files
committed
[doc]remove prepended doubleslash in exceptionmessage #1615
1 parent ce60831 commit 0e8eb58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function generateClass(string $className, string $templateName, array $va
6363
$targetPath = $this->fileManager->getRelativePathForFutureClass($className);
6464

6565
if (null === $targetPath) {
66-
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)));
66+
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)));
6767
}
6868

6969
$variables = array_merge($variables, [
@@ -97,7 +97,7 @@ final public function generateClassFromClassData(ClassData $classData, string $t
9797
$targetPath = $this->fileManager->getRelativePathForFutureClass($classData->getFullClassName());
9898

9999
if (null === $targetPath) {
100-
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()));
100+
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()));
101101
}
102102

103103
$globalTemplateVars = ['class_data' => $classData];

0 commit comments

Comments
 (0)