Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended namespace in generator LogicException should not be prepended with '\\' #1615

Open
dduenker opened this issue Nov 20, 2024 · 0 comments

Comments

@dduenker
Copy link

The following exception recommends using the full namespace starting with \\:

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

Doing this does not work though, the namespace has to start directly with (for example) App.

Butterd added a commit to Butterd/maker-bundle that referenced this issue Dec 7, 2024
kbond added a commit that referenced this issue Dec 10, 2024
…tterd)

This PR was merged into the 1.x-dev branch.

Discussion
----------

[doc]remove prepended doubleslash in exceptionmessage

Removes the prepended '\\' in the Exceptionmessage when encountering an invalid FCQN

#1615

#SymfonyHackday

Commits
-------

0e8eb58 [doc]remove prepended doubleslash in exceptionmessage #1615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant