mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 06:25:22 +01:00
Added declare strict types to all files
This commit is contained in:
@@ -62,7 +62,7 @@ final class UserRepository extends NamedDBElementRepository implements PasswordU
|
||||
*/
|
||||
public function findByEmailOrName(string $name_or_password): ?User
|
||||
{
|
||||
if (empty($name_or_password)) {
|
||||
if ($name_or_password === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user