From 2ac76e368a13cfa0d609a89f8d5a77bcf11bd17d Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Thu, 15 Dec 2022 12:26:25 +0900 Subject: [PATCH] Add #[\ReturnTypeWillChange] for PHP 8.1 support --- src/FakePdoStatementTrait.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FakePdoStatementTrait.php b/src/FakePdoStatementTrait.php index ac3fd4e6..71151103 100644 --- a/src/FakePdoStatementTrait.php +++ b/src/FakePdoStatementTrait.php @@ -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] !== ':') { @@ -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] !== ':') {