Skip to content

Commit

Permalink
fix error on youtube media creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tambait committed Oct 22, 2020
1 parent 7d2fa00 commit afaeffa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function validate($value, Constraint $constraint)
throw new UnexpectedTypeException($value, MediaInterface::class);
}

if (null === $value->getBinaryContent()) {
if (!$value->getBinaryContent() instanceof \SplFileInfo) {
return;
}

Expand Down

0 comments on commit afaeffa

Please sign in to comment.