1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

PHP: Addressed 8.4 deprecations within app itself

This commit is contained in:
Dan Brown
2025-02-17 12:45:37 +00:00
parent 3b4d3430a5
commit 5508c171db
14 changed files with 45 additions and 33 deletions

View File

@ -33,7 +33,7 @@ class UserApiController extends ApiController
});
}
protected function rules(int $userId = null): array
protected function rules(?int $userId = null): array
{
return [
'create' => [
@ -54,7 +54,7 @@ class UserApiController extends ApiController
'string',
'email',
'min:2',
(new Unique('users', 'email'))->ignore($userId ?? null),
(new Unique('users', 'email'))->ignore($userId),
],
'external_auth_id' => ['string'],
'language' => ['string', 'max:15', 'alpha_dash'],