We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eebd40 commit bda11c8Copy full SHA for bda11c8
src/Utils/Formatter.php
@@ -71,7 +71,11 @@ private function getMergedOptions(array $options)
71
$options
72
);
73
74
- $options['formats'] = self::mergeFormats($this->getDefaultFormats(), @$options['formats'] ?: array());
+ if (isset($options['formats'])) {
75
+ $options['formats'] = self::mergeFormats($this->getDefaultFormats(), $options['formats']);
76
+ } else {
77
+ $options['formats'] = $this->getDefaultFormats();
78
+ }
79
80
if (is_null($options['line_ending'])) {
81
$options['line_ending'] = $options['type'] === 'html' ? '<br/>' : "\n";
0 commit comments