-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Disable result set type-inference and other rules #745
Comments
Hi. Could you create a reproducer for the crash? Which php version, which dbal driver? |
PHP 8.4, mysqli driver. I can't create a reproducer, that's the whole point. It crashes randomly. I only want to use this plugin for checking errors like missing table, etc. |
I guess you could make your case easier to reproduce when invoking PHPStan with I think when we disable all features but syntax checking it will not stop crashing. We should try to address the root problem |
looking more closely at the stacktrace of your error it seems you are using you could just use <?php // phpstan-dba.php config file
// ..
QueryReflection::setupReflector(
new MysqliQueryReflector($mysqli),
$config
); (or you can attach a debugger onto SchemaHasherMysql and check why it returns a empty string in your case) |
Hi, we're using phpstan with level 8 and want to use this plugin for just SQL errors and nothing else. It is crashing things unnecessarily otherwise. Sometimes with one file, and sometimes with some other file.
Is it possible?
See this crash for example.
The text was updated successfully, but these errors were encountered: