Skip to content
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

PDO::exec could also return false #281

Merged
merged 1 commit into from Jul 22, 2020
Merged

PDO::exec could also return false #281

merged 1 commit into from Jul 22, 2020

Conversation

@ondrejmirtes
Copy link
Member

So when it actually returns false? Does it depend on the PDO error mode?

@Slamdunk
Copy link
Contributor Author

As far as I can tell from php-src, when statement is an empty string or a driver error occurs like https://github.com/php/php-src/blob/c85ded763222295f9d24f8550b9428259bc36e86/ext/pdo_mysql/mysql_driver.c#L259

@ondrejmirtes
Copy link
Member

Alright, thank you!

@ondrejmirtes ondrejmirtes merged commit 262694d into phpstan:master Jul 22, 2020
@Slamdunk Slamdunk deleted the patch-1 branch July 22, 2020 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants