Skip to content

Commit 3d73f38

Browse files
committed
Fix error message.
1 parent f4b09dd commit 3d73f38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Components/OptionsArray.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ public static function parse(Parser $parser, TokensList $list, array $options =
145145
$parser->error(
146146
sprintf(
147147
__('This option conflicts with "%1$s".'),
148-
$ret->options[$lastOptionId]
148+
is_array($ret->options[$lastOptionId])
149+
? $ret->options[$lastOptionId]['name']
150+
: $ret->options[$lastOptionId]
149151
),
150152
$token
151153
);

0 commit comments

Comments
 (0)