diff --git a/sourcecode/hub/app/Http/Requests/Api/UserRequest.php b/sourcecode/hub/app/Http/Requests/Api/UserRequest.php index 6dfe27d29..0a8d61a5d 100644 --- a/sourcecode/hub/app/Http/Requests/Api/UserRequest.php +++ b/sourcecode/hub/app/Http/Requests/Api/UserRequest.php @@ -9,6 +9,7 @@ use App\Models\User; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; + use function is_string; use function strtolower; diff --git a/sourcecode/hub/app/Http/Requests/StoreUserRequest.php b/sourcecode/hub/app/Http/Requests/StoreUserRequest.php index 6ccdb59f1..726605768 100644 --- a/sourcecode/hub/app/Http/Requests/StoreUserRequest.php +++ b/sourcecode/hub/app/Http/Requests/StoreUserRequest.php @@ -8,6 +8,7 @@ use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; use Illuminate\Validation\Rules\Password; + use function is_string; use function strtolower; diff --git a/sourcecode/hub/app/Http/Requests/UpdateUserRequest.php b/sourcecode/hub/app/Http/Requests/UpdateUserRequest.php index f2f361bb6..b6d17fa69 100644 --- a/sourcecode/hub/app/Http/Requests/UpdateUserRequest.php +++ b/sourcecode/hub/app/Http/Requests/UpdateUserRequest.php @@ -6,6 +6,7 @@ use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rules\Password; + use function is_string; use function strtolower; diff --git a/sourcecode/hub/tests/Browser/UserTest.php b/sourcecode/hub/tests/Browser/UserTest.php index 94ce70285..a6f4b3283 100644 --- a/sourcecode/hub/tests/Browser/UserTest.php +++ b/sourcecode/hub/tests/Browser/UserTest.php @@ -195,7 +195,7 @@ public function testEmailIsNormalizedUponChanging(): void // The login should be invalid if the email didn't normalize. // In that case, we wouldn't be able to see these. ->assertSee('Account updated successfully') - ->assertInputValue('email', 'e.mel@edlib.test') + ->assertInputValue('email', 'e.mel@edlib.test'), ); }