mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Fixed some deprecations
This commit is contained in:
parent
df8f54f5a4
commit
219b57a362
35 changed files with 42 additions and 54 deletions
|
@ -36,7 +36,7 @@ class ValidProjectBuildRequestValidator extends ConstraintValidator
|
|||
->setParameter('{{ lot }}', $partLot->getName());
|
||||
}
|
||||
|
||||
public function validate($value, Constraint $constraint)
|
||||
public function validate($value, Constraint $constraint): void
|
||||
{
|
||||
if (!$constraint instanceof ValidProjectBuildRequest) {
|
||||
throw new UnexpectedTypeException($constraint, ValidProjectBuildRequest::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue