close

[Solved] Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error Occurs?

Today I get the following error Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error in php.

How To Solve Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error Error ?

  1. How To Solve Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error ?

    To Solve Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error 1.3.1 fixed it.
    Just update your extension and you should be good to go

  2. Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error

    To Solve Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error 1.3.1 fixed it.
    Just update your extension and you should be good to go

Solution 1

use Illuminate\Support\Facades\Route;

Warning Disappeared after importing the corresponding namespace.

Version’s

  • Larvel 6+
  • vscode version 1.40.2
  • php intelephense 1.3.1

Solution 2

1.3.1 fixed it.

Just update your extension and you should be good to go

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment