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

@@ -13,7 +13,7 @@ class TwoFactorAuthenticationSettingsTest extends TestCase
{
use RefreshDatabase;
public function test_two_factor_authentication_can_be_enabled()
public function test_two_factor_authentication_can_be_enabled(): void
{
if (! Features::canManageTwoFactorAuthentication()) {
return $this->markTestSkipped('Two factor authentication is not enabled.');
@@ -32,7 +32,7 @@ class TwoFactorAuthenticationSettingsTest extends TestCase
$this->assertCount(8, $user->recoveryCodes());
}
public function test_recovery_codes_can_be_regenerated()
public function test_recovery_codes_can_be_regenerated(): void
{
if (! Features::canManageTwoFactorAuthentication()) {
return $this->markTestSkipped('Two factor authentication is not enabled.');
@@ -54,7 +54,7 @@ class TwoFactorAuthenticationSettingsTest extends TestCase
$this->assertCount(8, array_diff($user->recoveryCodes(), $user->fresh()->recoveryCodes()));
}
public function test_two_factor_authentication_can_be_disabled()
public function test_two_factor_authentication_can_be_disabled(): void
{
if (! Features::canManageTwoFactorAuthentication()) {
return $this->markTestSkipped('Two factor authentication is not enabled.');