Skip to content

Commit 46ddc1d

Browse files
authored
Merge pull request #173 from jrfnl/feature/php-8.4-fix-implicitly-nullable-params
PHP 8.4 | Fix implicitly nullable parameters
2 parents 615bdb6 + 5edc06b commit 46ddc1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cli/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ class Table {
4444
* @param array $rows The rows of data for this table. Optional.
4545
* @param array $footers Footers used in this table. Optional.
4646
*/
47-
public function __construct(array $headers = null, array $rows = null, array $footers = null) {
47+
public function __construct(array $headers = array(), array $rows = array(), array $footers = array()) {
4848
if (!empty($headers)) {
4949
// If all the rows is given in $headers we use the keys from the
5050
// first row for the header values
51-
if ($rows === null) {
51+
if ($rows === array()) {
5252
$rows = $headers;
5353
$keys = array_keys(array_shift($headers));
5454
$headers = array();

0 commit comments

Comments
 (0)