Skip to content

Commit 088c640

Browse files
committed
Fixed compatibility with PHP 8.4
1 parent fd5a0ad commit 088c640

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Column.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Column
4141
* @param array<int|float|string>|NULL $parameters
4242
* @param array<string|int, scalar|NULL> $options [OPTION => VALUE, OPTION2]
4343
*/
44-
public function __construct($name, $type, array $parameters = NULL, array $options = [])
44+
public function __construct($name, $type, ?array $parameters = NULL, array $options = [])
4545
{
4646
$this->name = $name;
4747
$this->setType($type);

src/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function getOptions()
103103
* @param array<string|int, scalar|NULL> $options OPTION => NULL
104104
* @return Column
105105
*/
106-
public function addColumn($name, $type = NULL, array $parameters = NULL, array $options = [])
106+
public function addColumn($name, $type = NULL, ?array $parameters = NULL, array $options = [])
107107
{
108108
$column = NULL;
109109

0 commit comments

Comments
 (0)