forked from mirror/Part-DB.Part-DB-server
Fixed further inspection issues
This commit is contained in:
parent
33e36f3d2b
commit
87533b6031
37 changed files with 46 additions and 71 deletions
|
@ -39,7 +39,7 @@ class SelectableValidator extends ConstraintValidator
|
|||
* @param mixed $value The value that should be validated
|
||||
* @param Constraint $constraint The constraint for the validation
|
||||
*/
|
||||
public function validate($value, Constraint $constraint): void
|
||||
public function validate(mixed $value, Constraint $constraint): void
|
||||
{
|
||||
if (!$constraint instanceof Selectable) {
|
||||
throw new UnexpectedTypeException($constraint, Selectable::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue