diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6fef8a1..e84fff6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,13 +13,19 @@ jobs: strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4, 8.0, 8.1] - laravel: [^7.0, ^8.0] + php: [7.2, 7.3, 7.4, '8.0', 8.1] + laravel: [7, 8, 9] exclude: - php: 7.2 - laravel: ^8.0 + laravel: 8 + - php: 7.2 + laravel: 9 + - php: 7.3 + laravel: 9 + - php: 7.4 + laravel: 9 - php: 8.1 - laravel: ^7.0 + laravel: 7 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} @@ -37,7 +43,7 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update + composer require "laravel/framework=^${{ matrix.laravel }}" --no-update composer update --prefer-dist --no-interaction --no-progress - name: Execute tests diff --git a/composer.json b/composer.json index 2fc3091..84fc524 100644 --- a/composer.json +++ b/composer.json @@ -13,21 +13,21 @@ "php": "^7.2|^8.0", "ext-dom": "*", "ext-json": "*", - "illuminate/contracts": "^7.0|^8.0", - "illuminate/database": "^7.0|^8.0", - "illuminate/http": "^7.0|^8.0", - "illuminate/support": "^7.0|^8.0", - "illuminate/testing": "^7.0|^8.0", + "illuminate/contracts": "^7.0|^8.0|^9.0", + "illuminate/database": "^7.0|^8.0|^9.0", + "illuminate/http": "^7.0|^8.0|^9.0", + "illuminate/support": "^7.0|^8.0|^9.0", + "illuminate/testing": "^7.0|^8.0|^9.0", "mockery/mockery": "^1.0", "phpunit/phpunit": "^8.5|^9.0", - "symfony/console": "^5.0", - "symfony/css-selector": "^5.0", - "symfony/dom-crawler": "^5.0", - "symfony/http-foundation": "^5.0", - "symfony/http-kernel": "^5.0" + "symfony/console": "^5.0|^6.0", + "symfony/css-selector": "^5.0|^6.0", + "symfony/dom-crawler": "^5.0|^6.0", + "symfony/http-foundation": "^5.0|^6.0", + "symfony/http-kernel": "^5.0|^6.0" }, "require-dev": { - "laravel/framework": "^7.0|^8.0" + "laravel/framework": "^7.0|^8.0|^9.0" }, "autoload": { "psr-4": { diff --git a/tests/Stubs/OutputStub.php b/tests/Stubs/OutputStub.php index 1ccd08b..f1fd6f5 100644 --- a/tests/Stubs/OutputStub.php +++ b/tests/Stubs/OutputStub.php @@ -19,31 +19,36 @@ public function setVerbosity($level) { } - public function getVerbosity() + public function getVerbosity(): int { + return 1; } - public function isQuiet() + public function isQuiet(): bool { + return false; } - public function isVerbose() + public function isVerbose(): bool { + return false; } - public function isVeryVerbose() + public function isVeryVerbose(): bool { + return false; } - public function isDebug() + public function isDebug(): bool { + return false; } public function setDecorated($decorated) { } - public function isDecorated() + public function isDecorated(): bool { } @@ -51,7 +56,7 @@ public function setFormatter(OutputFormatterInterface $formatter) { } - public function getFormatter() + public function getFormatter(): OutputFormatterInterface { } }