Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 93c8747

Browse filesBrowse files
author
symfonyaml
committed
Fix Psalm issue : Cannot find referenced variable $options in Video.php
1 parent 6d607a1 commit 93c8747
Copy full SHA for 93c8747

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
  • src/Symfony/Component/Validator/Constraints
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/Video.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.