1414
1515class MaintenanceModeTest extends TestCase
1616{
17- public function test_maintenance_mode_enabled ()
17+ public function test_maintenance_mode_enabled (): void
1818 {
1919 Features::fake (['system.down ' => true ]);
2020 Features::maintenanceMode ()
2121 ->onEnabled ('system.down ' );
2222
23- Route::get ('/ ' , fn () => 'Foo Bar ' );
23+ Route::get ('/ ' , fn (): string => 'Foo Bar ' );
2424
2525 $ this ->get ('/ ' )
2626 ->assertServiceUnavailable ();
2727
2828 Features::assertAccessed ('system.down ' );
2929 }
3030
31- public function test_maintenance_mode_disabled ()
31+ public function test_maintenance_mode_disabled (): void
3232 {
3333 Features::fake (['system.down ' => false ]);
3434 Features::maintenanceMode ()
3535 ->onEnabled ('system.down ' );
3636
37- Route::get ('/ ' , fn () => 'Foo Bar ' );
37+ Route::get ('/ ' , fn (): string => 'Foo Bar ' );
3838
3939 $ this ->get ('/ ' )
4040 ->assertOk ();
4141
4242 Features::assertAccessed ('system.down ' );
4343 }
4444
45- public function test_it_handles_the_first_match ()
45+ public function test_it_handles_the_first_match (): void
4646 {
4747 Features::fake (['system.api ' => true ,]);
4848 Features::maintenanceMode ()
@@ -52,7 +52,7 @@ public function test_it_handles_the_first_match()
5252 ->onEnabled ('system.api ' )
5353 ->statusCode (500 );
5454
55- Route::get ('/ ' , fn () => 'Foo Bar ' );
55+ Route::get ('/ ' , fn (): string => 'Foo Bar ' );
5656
5757 $ this ->get ('/ ' )
5858 ->assertStatus (500 );
@@ -61,7 +61,7 @@ public function test_it_handles_the_first_match()
6161 Features::assertAccessed ('system.api ' );
6262 }
6363
64- public function test_upon_activation ()
64+ public function test_upon_activation (): void
6565 {
6666 $ called = false ;
6767 Features::maintenanceMode ()
@@ -75,15 +75,15 @@ public function test_upon_activation()
7575 }
7676
7777 #[\PHPUnit \Framework \Attributes \DataProvider('exceptsValues ' )]
78- public function test_maintenance_mode_respects_excepts_values (string $ path , int $ status )
78+ public function test_maintenance_mode_respects_excepts_values (string $ path , int $ status ): void
7979 {
8080 Features::fake (['system.down ' => true ]);
8181 Features::maintenanceMode ()
8282 ->onEnabled ('system.down ' )
8383 ->exceptPaths (['/test ' ]);
8484
85- Route::get ('/ ' , fn () => 'Foo Bar ' );
86- Route::get ('/test ' , fn () => 'Foo Bar Foo ' );
85+ Route::get ('/ ' , fn (): string => 'Foo Bar ' );
86+ Route::get ('/test ' , fn (): string => 'Foo Bar Foo ' );
8787
8888 $ this
8989 ->withoutExceptionHandling ([\Symfony \Component \HttpKernel \Exception \HttpException::class])
@@ -103,7 +103,7 @@ public static function exceptsValues(): \Generator
103103 ];
104104 }
105105
106- public function test_upon_deactivation ()
106+ public function test_upon_deactivation (): void
107107 {
108108 $ called = false ;
109109 Features::fake (['system.down ' => true ]);
0 commit comments