Skip to content

Commit 926e1f1

Browse files
authored
Add #[\ReturnTypeWillChange] for PHP 8.1 support (#37)
1 parent 1b71076 commit 926e1f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/FakePdoStatementTrait.php

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public function __construct(FakePdoInterface $conn, string $sql, ?\PDO $real)
7474
* @param int $type
7575
* @return bool
7676
*/
77+
#[\ReturnTypeWillChange]
7778
public function bindValue($key, $value, $type = \PDO::PARAM_STR) : bool
7879
{
7980
if (\is_string($key) && $key[0] !== ':') {
@@ -99,6 +100,7 @@ public function bindValue($key, $value, $type = \PDO::PARAM_STR) : bool
99100
* @param mixed $driverOptions
100101
* @return bool
101102
*/
103+
#[\ReturnTypeWillChange]
102104
public function bindParam($key, &$value, $type = PDO::PARAM_STR, $maxLength = null, $driverOptions = null): bool
103105
{
104106
if (\is_string($key) && $key[0] !== ':') {

0 commit comments

Comments
 (0)