marlonfan / coc-phpls

🐭 php language server for coc.nvim
MIT License
212 stars 16 forks source link

Undefine type #47

Closed thevan96 closed 4 years ago

thevan96 commented 4 years ago

Describe the bug Show error Undefined type 'Route'

To Reproduce Steps to reproduce the behavior:

  1. Create project laravel : laravel new blog
  2. Open file routes/web.php
  3. Show Error

Expected behavior Auto show error

Screenshots image

Desktop (please complete the following information):

Additional context Use coc-phpls in neovim

marlonfan commented 4 years ago

image Rout -> Route

thevan96 commented 4 years ago

sorry i write wrong, but Route return error image

marlonfan commented 4 years ago

@thevan96 i think maybe you need laravel ide helper. FYI

thevan96 commented 4 years ago

Haizzzz

wilbura009 commented 1 year ago

tldr; run

composer update

I just had this same issue. The previous day this plugin was working fine without the additional laravel ide helper. I searched and found this solution on StackOverFlow. I ran composer update and it got rid of the errors for me.