Skip to content

Commit 332ebaf

Browse files
committed
docs: simplify escape parameter types
Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent 7314bed commit 332ebaf

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

system/Database/BaseConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ abstract public function affectedRows(): int;
17591759
* Escapes data based on type.
17601760
* Sets boolean and null types
17611761
*
1762-
* @param array|BackedEnum|bool|float|int|object|string|null $str
1762+
* @param mixed $str
17631763
*
17641764
* @return ($str is array ? array : float|int|string)
17651765
*/

system/Database/ConnectionInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
namespace CodeIgniter\Database;
1515

16-
use BackedEnum;
17-
1816
/**
1917
* @template TConnection
2018
* @template TResult
@@ -181,7 +179,7 @@ public function getLastQuery();
181179
* Escapes data based on type.
182180
* Sets boolean and null types.
183181
*
184-
* @param array|BackedEnum|bool|float|int|object|string|null $str
182+
* @param mixed $str
185183
*
186184
* @return ($str is array ? array : float|int|string)
187185
*/

system/Database/Postgre/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function affectedRows(): int
355355
*
356356
* Escapes data based on type
357357
*
358-
* @param array|BackedEnum|bool|float|int|object|string|null $str
358+
* @param mixed $str
359359
*
360360
* @return ($str is array ? array : float|int|string)
361361
*/

0 commit comments

Comments
 (0)