Skip to content

Conversation

@MaxKorlaar
Copy link
Contributor

TypeError: Exception::__construct(): Argument #2 ($code) must be of type int, string given in vendor/foolz/sphinxql-query-builder/src/Drivers/Pdo/Connection.php:28

See also https://bugs.php.net/bug.php?id=51742. We've been experiencing this error occasionally and because of the incorrect handling, we weren't able to find out what our actual database errors are. This PR closes #191.

`TypeError: Exception::__construct(): Argument #2 ($code) must be of type int, string given in vendor/foolz/sphinxql-query-builder/src/Drivers/Pdo/Connection.php:28`
@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@Jon78
Copy link

Jon78 commented Aug 12, 2021

@oohnoitz could you please merge? Thanks!

@oohnoitz oohnoitz merged commit b828c65 into FoolCode:master Aug 12, 2021
@MaxKorlaar MaxKorlaar deleted the bugfix/wrong-parameters-for-exception branch August 12, 2021 13:28
@oohnoitz
Copy link
Contributor

3.0.1 is out with this change.

@MaxKorlaar
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong parameters for Foolz\SphinxQL\Exception\DatabaseException

4 participants