bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.56k stars 92 forks source link

Too many arguments to function fetch(). 1 provided, but 0 accepted" error in PHP Intelephense #2913

Closed angelagitaputri closed 1 week ago

angelagitaputri commented 1 week ago

I am encountering an issue with the PHP Intelephense extension in Visual Studio Code. When using the fetch() method with PDO::FETCH_ASSOC, I receive the following error message:

"Too many arguments to function fetch(). 1 provided, but 0 accepted."

bmewburn commented 1 week ago

Intelephense's argument count diagnostic message is Expected ${expected} arguments. Found ${actual}. I think this message must be coming from a different extension.