Skip to content

Commit

Permalink
Laravel 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenMl committed Mar 8, 2024
1 parent 36ffff3 commit 677803b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ jobs:
matrix:
os: [ ubuntu-latest ]
php: [ 8.2, 8.3 ]
laravel: [ ^10.0 ]
laravel: [ ^10.0, ^11.0 ]
dependency-version: [ prefer-lowest, prefer-stable ]
include:
- laravel: ^10.0
testbench: ^8.0
- laravel: 11.*
testbench: 9.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
],
"require": {
"php": "^8.2",
"illuminate/http": "^10.15",
"illuminate/support": "^10.15"
"illuminate/http": "^10.15 || ^11.0",
"illuminate/support": "^10.15 || ^11.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.13",
"intervention/image": "^2.5.0",
"nunomaduro/larastan": "^2.3",
"orchestra/testbench": "^8.0",
"larastan/larastan": "^2.3",
"orchestra/testbench": "^8.0 || ^9.0",
"phpunit/phpunit": "^10.4"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
- ./vendor/nunomaduro/larastan/extension.neon
- ./vendor/larastan/larastan/extension.neon
- phpstan-baseline.neon

parameters:
Expand Down
2 changes: 1 addition & 1 deletion src/Debug/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @method static mixed measuring(string $name, callable $callable)
* @method static void dd(...$vars)
*
* @see \Soyhuce\DevTools\Debug\DebugManager
* @see DebugManager
*/
class Debug extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Debug/DebugMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function handle($request, Closure $next): mixed

/**
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Testing\TestResponse|\Symfony\Component\HttpFoundation\Response $response
* @param \Symfony\Component\HttpFoundation\Response|TestResponse $response
*/
public function terminate($request, $response): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Faker/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static function generate(
?string $text = null,
string $encoding = 'jpg',
): InterventionImage {
if (!class_exists(\Intervention\Image\Image::class)) {
if (!class_exists(InterventionImage::class)) {
throw new Exception('package intervention/image is required to use Image::generate');
}

Expand Down

0 comments on commit 677803b

Please sign in to comment.