mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed some more phpstan issues
This commit is contained in:
parent
2f46fbfc7a
commit
e8771ea118
77 changed files with 192 additions and 109 deletions
|
@ -25,6 +25,7 @@ namespace App\Entity\UserSystem;
|
|||
use Doctrine\DBAL\Types\Types;
|
||||
use App\Entity\Base\TimestampTrait;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
use Webauthn\PublicKeyCredentialSource as BasePublicKeyCredentialSource;
|
||||
|
||||
#[ORM\Entity]
|
||||
|
@ -40,7 +41,8 @@ class WebauthnKey extends BasePublicKeyCredentialSource
|
|||
protected int $id;
|
||||
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $name;
|
||||
#[NotBlank]
|
||||
protected string $name = '';
|
||||
|
||||
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'webauthn_keys')]
|
||||
protected ?User $user = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue