Skip to content

Commit fc49e95

Browse files
committed
Correct nullable types
1 parent e484b3c commit fc49e95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Vectorface/MySQLite/MySQLite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function ($f) {
5353
* @param string[] $fnList A list of functions to create on the SQLite database. (Omit to create all.)
5454
* @return PDO Returns a reference to the PDO instance passed in to the function.
5555
*/
56-
public static function &createFunctions(PDO &$pdo, array $fnList = null)
56+
public static function &createFunctions(PDO &$pdo, ?array $fnList = null)
5757
{
5858
if ($pdo->getAttribute(PDO::ATTR_DRIVER_NAME) !== 'sqlite') {
5959
throw new InvalidArgumentException('Expecting a PDO instance using the SQLite driver');
@@ -97,7 +97,7 @@ protected static function getPublicMethodData()
9797
* @param string[] $fnList A list of functions to create on the SQLite database, or empty for all.
9898
* @return bool Returns true if the method was registed. False otherwise.
9999
*/
100-
protected static function registerMethod(PDO &$pdo, $method, $paramCount, array $fnList = null)
100+
protected static function registerMethod(PDO &$pdo, $method, $paramCount, ?array $fnList = null)
101101
{
102102
$function = substr($method, 6); /* Strip 'mysql_' prefix to get the function name. */
103103

0 commit comments

Comments
 (0)