Skip to content

Commit

Permalink
Laravel 9 support (#162)
Browse files Browse the repository at this point in the history
* Laravel 9 support

* wip
  • Loading branch information
driesvints authored Jan 12, 2022
1 parent 1e8995f commit cde1e03
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 23 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
19 changes: 12 additions & 7 deletions tests/Stubs/OutputStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,44 @@ 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
{
}

public function setFormatter(OutputFormatterInterface $formatter)
{
}

public function getFormatter()
public function getFormatter(): OutputFormatterInterface
{
}
}

0 comments on commit cde1e03

Please sign in to comment.