Skip to content

Commit 17a8d63

Browse files
committed
Fixes ErrorException in Laravel 5.5
[ErrorException] Declaration of BackupManager\Laravel\Laravel55Compatibility::table($headers, $rows, $style = 'default') should be compati ble with Illuminate\Console\Command::table($headers, $rows, $tableStyle = 'default', array $columnStyles = Array)
1 parent 6becef4 commit 17a8d63

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Laravel55Compatibility.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
*/
1010
trait Laravel55Compatibility {
1111
/**
12-
* @param array $headers
13-
* @param array $rows
14-
* @internal param string $style
12+
* @param $headers
13+
* @param $rows
14+
* @param string $style
15+
* @param array $columnStyles
1516
* @return void
1617
*/
17-
public function table($headers, $rows, $style = 'default') {
18+
public function table($headers, $rows, $style = 'default', array $columnStyles = []) {
1819
try {
1920
$table = $this->getHelperSet()->get('table');
2021
} catch (InvalidArgumentException $error) {

0 commit comments

Comments
 (0)