From f3aed7ba507e1138c2db9b7c6074581c4b593cfc Mon Sep 17 00:00:00 2001 From: Martin Drapeau Date: Wed, 3 Feb 2021 06:29:45 -0500 Subject: [PATCH 1/2] Update AutoComplete.php to support PHP 8 Removed default argument not allowed by PHP 8 --- src/AutoComplete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoComplete.php b/src/AutoComplete.php index d215530..abf64ab 100644 --- a/src/AutoComplete.php +++ b/src/AutoComplete.php @@ -40,7 +40,7 @@ public function autocomplete($dialog, array $list, $default = null) { * @param null $default * @return mixed */ - protected function useSymfontDialog($dialog, array $list, $default = null, $validation) { + protected function useSymfontDialog($dialog, array $list, $default, $validation) { $helper = $this->getHelperSet()->get('dialog'); return $helper->askAndValidate( @@ -53,7 +53,7 @@ protected function useSymfontDialog($dialog, array $list, $default = null, $vali * @param null $default * @return mixed */ - protected function useSymfonyQuestion($dialog, $default = null, $validation) { + protected function useSymfonyQuestion($dialog, $default, $validation) { $question = new Question($dialog . ' ', $default); $question->setValidator($validation); $helper = $this->getHelper('question'); From 046295553778c84a2f1f5c5b2c6fb5e403fd76f3 Mon Sep 17 00:00:00 2001 From: Martin Drapeau Date: Wed, 3 Feb 2021 06:41:58 -0500 Subject: [PATCH 2/2] Support for Laravel 8 and PHP 8 --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 89f95b3..db61c0b 100644 --- a/composer.json +++ b/composer.json @@ -10,11 +10,11 @@ ], "require": { "backup-manager/backup-manager": "^3.0", - "php": "^7.3||^7.4", + "php": "^7.3||^7.4||^8", "symfony/process": "^3||^4||^5", - "illuminate/support": "^5.5||^6||^7", - "illuminate/container": "^5.5||^6||^7", - "illuminate/console": "^5.5||^6||^7" + "illuminate/support": "^5.5||^6||^7||^8", + "illuminate/container": "^5.5||^6||^7||^8", + "illuminate/console": "^5.5||^6||^7||^8" }, "require-dev": { "mockery/mockery": "dev-master",