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

Multiple definitions exist for class 'Route' #557

Closed
galtsevt opened this issue Nov 12, 2023 · 2 comments
Closed

Multiple definitions exist for class 'Route' #557

galtsevt opened this issue Nov 12, 2023 · 2 comments

Comments

@galtsevt
Copy link

What is this for? I don't like that ide underlines my code.

image

gerardroche added a commit to gerardroche/inertia-laravel that referenced this issue Nov 27, 2023
This file actually interferes with application-level LSP, because LSP
picks it up and indexes it, then things break like goto definition and
results in warnings about missing methods like `Route::get()`.

Fixes  inertiajs#557
@johnpyp
Copy link

johnpyp commented May 19, 2024

If anyone is still having this issue, I recommend you use https://github.com/barryvdh/laravel-ide-helper to unify and normalize the type definitions. Seems to make everything more well behaved.

@driesvints
Copy link
Collaborator

Thanks @johnpyp

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

3 participants