Skip to content

Commit 5dde7ab

Browse files
author
symfonyaml
committed
Fix Psalm issue : Cannot find referenced variable $options in Video.php
1 parent 2b57424 commit 5dde7ab

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Validator/Constraints

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Constraints/Video.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function __construct(
186186
$this->allowPortraitMessage = $allowPortraitMessage ?? $this->allowPortraitMessage;
187187
$this->corruptedMessage = $corruptedMessage ?? $this->corruptedMessage;
188188

189-
if (!\in_array('video/*', (array) $this->mimeTypes, true) && !\array_key_exists('mimeTypesMessage', $options ?? []) && null === $mimeTypesMessage) {
189+
if (!\in_array('video/*', (array) $this->mimeTypes, true) && null === $mimeTypesMessage) {
190190
$this->mimeTypesMessage = 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.';
191191
}
192192
}

0 commit comments

Comments
 (0)