Recommended namespace in generator LogicException should not be prepended with '\\'
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start in src/Generator.php around line 100, where the LogicException recommends a namespace. Check how the namespace is formatted in that message and how the recommendation is consumed. Done means the recommendation starts directly with a namespace such as App rather than a leading backslash, with the existing generator behavior still intact.
Written by the indexing model from the issue text.
Description
The following exception recommends using the full namespace starting with \\:
https://github.com/symfony/maker-bundle/blob/ce60831a9d6c41c032117ddf59f303f56d004c87/src/Generator.php#L100
Doing this does not work though, the namespace has to start directly with (for example) App.
- Dominant language
- PHP
- Stars
- 3.4k
- Forks
- 427
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 20
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from symfony/maker-bundle
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
symfony/maker-bundle#1832 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
symfony/maker-bundle#1764 · 3 comments · 9 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
symfony/maker-bundle#1760 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
symfony/maker-bundle#1757 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
symfony/maker-bundle#1738 ·
All issues in symfony/maker-bundle
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·