Add PHP type hints for Laravel 10

This commit is contained in:
Shift
2023-02-19 16:19:46 +00:00
committed by HolgerHatGarKeineNode
parent ad55c69b51
commit 98a430c91c
192 changed files with 563 additions and 550 deletions

View File

@@ -12,7 +12,7 @@ class RegistrationTest extends TestCase
{
use RefreshDatabase;
public function test_registration_screen_can_be_rendered()
public function test_registration_screen_can_be_rendered(): void
{
if (! Features::enabled(Features::registration())) {
return $this->markTestSkipped('Registration support is not enabled.');
@@ -23,7 +23,7 @@ class RegistrationTest extends TestCase
$response->assertStatus(200);
}
public function test_registration_screen_cannot_be_rendered_if_support_is_disabled()
public function test_registration_screen_cannot_be_rendered_if_support_is_disabled(): void
{
if (Features::enabled(Features::registration())) {
return $this->markTestSkipped('Registration support is enabled.');
@@ -34,7 +34,7 @@ class RegistrationTest extends TestCase
$response->assertStatus(404);
}
public function test_new_users_can_register()
public function test_new_users_can_register(): void
{
if (! Features::enabled(Features::registration())) {
return $this->markTestSkipped('Registration support is not enabled.');