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 14a0707

Browse filesBrowse files
committed
Remove unneeded extra variables
1 parent 6d07204 commit 14a0707
Copy full SHA for 14a0707

File tree

1 file changed

+3
-7
lines changed
Filter options

1 file changed

+3
-7
lines changed

‎src/Symfony/Component/OptionsResolver/OptionsResolver.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/OptionsResolver/OptionsResolver.php
+3-7Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -803,17 +803,13 @@ public function offsetGet($option)
803803
}
804804

805805
if (!$valid) {
806-
$message = 'The option "%s" with value %s is expected to be of type "%s"';
807-
808-
$message .= ', but is of type "%s".';
809-
$types = implode('|', array_unique($invalidTypes));
810-
811806
throw new InvalidOptionsException(sprintf(
812-
$message,
807+
'The option "%s" with value %s is expected to be of type '.
808+
'"%s", but is of type "%s".',
813809
$option,
814810
$this->formatValue($value),
815811
implode('" or "', $this->allowedTypes[$option]),
816-
$types
812+
implode('|', array_unique($invalidTypes))
817813
));
818814
}
819815
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.