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

Route parameter auto-complete inconsistent #2246

Open
drjayvee opened this issue Nov 15, 2023 · 0 comments
Open

Route parameter auto-complete inconsistent #2246

drjayvee opened this issue Nov 15, 2023 · 0 comments

Comments

@drjayvee
Copy link

drjayvee commented Nov 15, 2023

I've noticed three issues with auto-complete suggestions. I'm reporting them all in one issue because they seem very related. Let me know if I should create separate issues for each.

I'm using PHPStorm 2023.2.3 on Windows 10 with the paid version of the plugin. ❤️

1. No parameters for Route('')

When using a route prefix, any route that uses just the prefix path does not show its parameters in auto-completion.

Routes completion

2. Auto-complete depends on method call

Depending on how I call the UrlGeneratorInterface, I either do or do not get auto-complete for parameters.

Routes parameter completion

PHPStorm auto-completes the route names either way, but it does not complete parameters when using $this->path().

3. Twig path function only auto-completes if quoted

The title says it all.

Routes parameter completion in Twig

Since {{ path('some_slash', {id: 1337}) }} is perfectly valid, I would expect the auto-complete to work.

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