vscode-intelephense
vscode-intelephense copied to clipboard
\mysqli_sql_exception->getSqlState()
\mysqli_sql_exception->getSqlState()
is now a public function, since PHP 8.1.2.
https://www.php.net/manual/en/class.mysqli-sql-exception.php
I have set "intelephense.environment.phpVersion": "8.1.2"
but it still shows:
Undefined method 'getSqlState'.intelephense(1013)
Needs a PR upstream at https://github.com/JetBrains/phpstorm-stubs/blob/master/mysqli/mysqli.php
Thanks. I can't figure out how to open an Issue/Request with them. They have GitHub Issues disabled.
Reported here now: https://youtrack.jetbrains.com/issue/WI-67525/phpstorm-stubs-mysqlisqlexception-getSqlState
@bmewburn - just got a response from Jetbrains.
Correct me if I am wrong but isn't it in stubs already? https://github.com/JetBrains/phpstorm-stubs/blob/master/mysqli/mysqli.php#L35
I've updated:
"intelephense.environment.phpVersion": "8.1.8",
let Intelephense re-index the codebase, and it's still showing as undefined to me.

This is still giving errors to me.

This is resolved in 1.9.0 as you updated the stubs. Thanks!