You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing the following issue when using EPDOStatement:
During inheritance of PDOStatement: Uncaught Whoops\Exception\ErrorException: Return type of EPDOStatement\EPDOStatement::bindParam($param, &$value, $datatype = PDO::PARAM_STR, $length = 0, $driverOptions = false) should either be compatible with PDOStatement::bindParam(string|int $param, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/myuser/Documents/Projects/myapp/vendor/noahheck/e_pdostatement/src/EPDOStatement.php:80
Stack trace:
#0 /Users/myuser/Documents/Projects/myapp/vendor/noahheck/e_pdostatement/src/EPDOStatement.php(25): Whoops\Run->handleError(8192, 'Return type of ...', '/Users/myuser/...', 80)
#1 /Users/myuser/Documents/Projects/myapp/vendor/composer/ClassLoader.php(571): include('/Users/myuser/...')
#2 /Users/myuser/Documents/Projects/myapp/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/Users/myuser/...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('EPDOStatement\\E...')
#4 /Users/myuser/Documents/Projects/myapp/src/php/Database/DBConnection.php(21): PDO->setAttribute(13, Array)
[...]
I'm using Whoops for catching exceptions while in "debug" mode on my site.
I'm using PHP 8.1.11 and the version 2.3.1 of the package via composer.
Sorry for the late reply @yonicsurny (I've been away from work activities for a while).
This looks like an issue with the PHP version and a change in the bindParam method's signature. I haven't updated my packages for php-8 support ( 😞 ) yet.
Hi,
I'm facing the following issue when using EPDOStatement:
I'm using Whoops for catching exceptions while in "debug" mode on my site.
I'm using PHP 8.1.11 and the version 2.3.1 of the package via composer.
Here is the content of the
DBConnection
class:What could be the issue?
Thank you in advance for your support.
The text was updated successfully, but these errors were encountered: