mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-17 08:11:14 +02:00
Fixed some deprecations related to missing return types
This commit is contained in:
parent
eb24aa2e68
commit
294f7cf005
11 changed files with 20 additions and 21 deletions
|
@ -32,7 +32,7 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
|
|||
class UniqueObjectCollectionValidator extends ConstraintValidator
|
||||
{
|
||||
|
||||
public function validate(mixed $value, Constraint $constraint)
|
||||
public function validate(mixed $value, Constraint $constraint): void
|
||||
{
|
||||
if (!$constraint instanceof UniqueObjectCollection) {
|
||||
throw new UnexpectedTypeException($constraint, UniqueObjectCollection::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue