-
-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to an undefined method mysqli::execute_query(). #8058
Comments
We need to update PhpStorm stubs, I've been postponing that because of this build failure https://github.com/phpstan/phpstan-src/actions/runs/3086479438/jobs/4990860388
Feel free to debug and fix what's the reason behind this test failure. |
@rvanvelzen After the latest push in 1.8.x, PHPStan now reports different result with your code snippet: @@ @@
-12: Dumped type: \Exception
+12: Dumped type: Exception Full report
|
@staabm After the latest push in 1.8.x, PHPStan now reports different result with your code snippet: @@ @@
-PHP 8.2 (1 error)
+PHP 8.2
==========
- 9: Call to an undefined method mysqli::execute_query().
+No errors
PHP 7.1 – 8.1 (2 errors)
========== Full reportPHP 8.2No errors PHP 7.1 – 8.1 (2 errors)
|
excellent. should I bring in a regression test, or can we just close? |
Regression test would be nice, thanks |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
since php 8.2 the mysqli class should have a method
execute_query
defined, see https://wiki.php.net/rfc/mysqli_execute_queryCode snippet that reproduces the problem
https://phpstan.org/r/f98680cc-3a15-4ed2-aff7-7da225c41f36
Expected output
no error
Did PHPStan help you today? Did it make you happy in any way?
The text was updated successfully, but these errors were encountered: