mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Added declare strict types to all files
This commit is contained in:
parent
bea90a7d94
commit
6a2ff9d153
196 changed files with 685 additions and 360 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue