Skip to content

Commit

Permalink
feat: adds support to Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jan 4, 2021
1 parent eea8743 commit 060aa1d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
"require": {
"php": "^7.2 || ^8.0",
"composer/composer": "^1.0 || ^2.0",
"illuminate/console": "^6.0 || ^7.0 || ^8.0",
"illuminate/container": "^6.0 || ^7.0 || ^8.0",
"illuminate/contracts": "^6.0 || ^7.0 || ^8.0",
"illuminate/database": "^6.0 || ^7.0 || ^8.0",
"illuminate/http": "^6.0 || ^7.0 || ^8.0",
"illuminate/pipeline": "^6.0 || ^7.0 || ^8.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0",
"illuminate/console": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/container": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/contracts": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/database": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/http": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/pipeline": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"mockery/mockery": "^0.9 || ^1.0",
"phpstan/phpstan": "^0.12.34",
"symfony/process": "^4.3 || ^5.0",
"ext-json": "*"
},
"require-dev": {
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^7.3 || ^8.2 || ^9.3"
},
"suggest": {
Expand Down
5 changes: 4 additions & 1 deletion tests/Features/Methods/StorageFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ public function testDisk(): Filesystem
return Storage::disk();
}

public function testDiskGetDriver(): \League\Flysystem\FilesystemInterface
/**
* @return \League\Flysystem\FilesystemOperator|\League\Flysystem\FilesystemInterface
*/
public function testDiskGetDriver()
{
return Storage::disk()->getDriver();
}
Expand Down
1 change: 1 addition & 0 deletions tests/phpstan-tests.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ parameters:
ignoreErrors:
- '#Return typehint of method Tests\\Features\\ReturnTypes\\Facades::testHttpBaseUrl\(\) has invalid type Illuminate\\Http\\Client\\PendingRequest\.#'
- '#Call to static method baseUrl\(\) on an unknown class Illuminate\\Support\\Facades\\Http\.#'
- '#testDiskGetDriver\(\) has invalid type League\\Flysystem\\FilesystemInterface.#'

0 comments on commit 060aa1d

Please sign in to comment.