From 05e1c946565a68a9237e4a4d7ae9007b85b8d16d Mon Sep 17 00:00:00 2001 From: James Date: Wed, 20 Sep 2017 10:06:20 -0700 Subject: [PATCH] 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) --- src/Laravel55Compatibility.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Laravel55Compatibility.php b/src/Laravel55Compatibility.php index c308861..6ebc2e3 100644 --- a/src/Laravel55Compatibility.php +++ b/src/Laravel55Compatibility.php @@ -9,12 +9,13 @@ */ trait Laravel55Compatibility { /** - * @param array $headers - * @param array $rows - * @internal param string $style + * @param $headers + * @param $rows + * @param string $style + * @param array $columnStyles * @return void */ - public function table($headers, $rows, $style = 'default') { + public function table($headers, $rows, $style = 'default', array $columnStyles = []) { try { $table = $this->getHelperSet()->get('table'); } catch (InvalidArgumentException $error) {