Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error

前端 未结 15 839
广开言路
广开言路 2020-12-04 06:14

After the latest update of PHP Intelephense that I get today, the intelephense keep showing an error for an undefined symbol for my route (and other class too), there is no

15条回答
  •  执念已碎
    2020-12-04 06:59

    In my case, for some reason, vendor folder was disabled on VS Code settings:

        "intelephense.files.exclude": [
            "**/.git/**",
            "**/.svn/**",
            "**/.hg/**",
            "**/CVS/**",
            "**/.DS_Store/**",
            "**/node_modules/**",
            "**/bower_components/**",
            "**/vendor/**", <-- remove this line!
            "**/resources/views/**"
        ],
    

    By removing the line containing vendor folder it works ok on version Intelephense 1.5.4

提交回复
热议问题