mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Fixed some serializer deprecations
This commit is contained in:
parent
219b57a362
commit
e57d6e508a
7 changed files with 51 additions and 27 deletions
|
@ -30,7 +30,7 @@ class ValidThemeValidator extends ConstraintValidator
|
|||
{
|
||||
}
|
||||
|
||||
public function validate($value, Constraint $constraint)
|
||||
public function validate($value, Constraint $constraint): void
|
||||
{
|
||||
if (!$constraint instanceof ValidTheme) {
|
||||
throw new UnexpectedTypeException($constraint, ValidTheme::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue