We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 615bdb6 + 5edc06b commit 46ddc1dCopy full SHA for 46ddc1d
lib/cli/Table.php
@@ -44,11 +44,11 @@ class Table {
44
* @param array $rows The rows of data for this table. Optional.
45
* @param array $footers Footers used in this table. Optional.
46
*/
47
- public function __construct(array $headers = null, array $rows = null, array $footers = null) {
+ public function __construct(array $headers = array(), array $rows = array(), array $footers = array()) {
48
if (!empty($headers)) {
49
// If all the rows is given in $headers we use the keys from the
50
// first row for the header values
51
- if ($rows === null) {
+ if ($rows === array()) {
52
$rows = $headers;
53
$keys = array_keys(array_shift($headers));
54
$headers = array();
0 commit comments