Skip to content

Commit

Permalink
Add #[\ReturnTypeWillChange] for PHP 8.1 support (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Jan 23, 2024
1 parent 1b71076 commit 926e1f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FakePdoStatementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function __construct(FakePdoInterface $conn, string $sql, ?\PDO $real)
* @param int $type
* @return bool
*/
#[\ReturnTypeWillChange]
public function bindValue($key, $value, $type = \PDO::PARAM_STR) : bool
{
if (\is_string($key) && $key[0] !== ':') {
Expand All @@ -99,6 +100,7 @@ public function bindValue($key, $value, $type = \PDO::PARAM_STR) : bool
* @param mixed $driverOptions
* @return bool
*/
#[\ReturnTypeWillChange]
public function bindParam($key, &$value, $type = PDO::PARAM_STR, $maxLength = null, $driverOptions = null): bool
{
if (\is_string($key) && $key[0] !== ':') {
Expand Down

0 comments on commit 926e1f1

Please sign in to comment.