diff --git a/tests/Http/Middleware/MiddlewareDeclarationTest.php b/tests/Http/Middleware/MiddlewareDeclarationTest.php index 9505b36..89696bb 100644 --- a/tests/Http/Middleware/MiddlewareDeclarationTest.php +++ b/tests/Http/Middleware/MiddlewareDeclarationTest.php @@ -4,6 +4,7 @@ use Illuminate\Contracts\Http\Kernel; use Illuminate\Routing\Router; +use Illuminate\Support\Arr; use Laragear\Meta\Http\Middleware\MiddlewareDeclaration; use Laragear\Meta\Testing\InteractsWithServiceProvider; use Tests\TestCase; @@ -50,14 +51,14 @@ public function test_first(): void { $this->declaration->first(); - static::assertSame('foo', $this->app->make(Kernel::class)->getMiddlewarePriority()[0]); + static::assertSame('foo', Arr::first($this->app->make(Kernel::class)->getMiddlewarePriority())); } public function test_last(): void { $this->declaration->last(); - static::assertSame('foo', $this->app->make(Kernel::class)->getMiddlewarePriority()[9]); + static::assertSame('foo', Arr::last($this->app->make(Kernel::class)->getMiddlewarePriority())); } public function test_shared(): void