Skip to content

Commit e1ac69c

Browse files
committed
clean up
1 parent cd4000c commit e1ac69c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Illuminate/Foundation/Testing/WithCachedRoutes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ trait WithCachedRoutes
1010

1111
protected function setUpWithCachedRoutes(): void
1212
{
13-
$this->app->instance('routes.cached', true);
14-
1513
if ((self::$cachedRoutes ?? null) === null) {
1614
$routes = $this->app['router']->getRoutes();
1715
$routes->refreshNameLookups();
1816
$routes->refreshActionLookups();
1917
self::$cachedRoutes = $routes;
2018
}
2119

20+
$this->app->instance('routes.cached', true);
21+
2222
RouteServiceProvider::loadCachedRoutesUsing(
2323
static fn () => app('router')->setCompiledRoutes(self::$cachedRoutes)
2424
);

tests/Foundation/FoundationApplicationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Illuminate\Foundation\Events\LocaleUpdated;
1010
use Illuminate\Support\ServiceProvider;
1111
use Mockery as m;
12-
use PHPUnit\Framework\Attributes\TestWith;
1312
use PHPUnit\Framework\TestCase;
1413
use stdClass;
1514
use Symfony\Component\HttpKernel\Exception\HttpException;
@@ -621,7 +620,8 @@ public function test_routes_are_cached()
621620
public function test_routes_are_not_cached_by_instance_falls_back_to_file()
622621
{
623622
$app = new Application();
624-
$files = new class {
623+
$files = new class
624+
{
625625
public string $pathRequested;
626626
public function exists(string $path): bool
627627
{

0 commit comments

Comments
 (0)