Skip to content

Commit

Permalink
Fix error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ungureanu committed Oct 21, 2015
1 parent f4b09dd commit 3d73f38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/OptionsArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ public static function parse(Parser $parser, TokensList $list, array $options =
$parser->error(
sprintf(
__('This option conflicts with "%1$s".'),
$ret->options[$lastOptionId]
is_array($ret->options[$lastOptionId])
? $ret->options[$lastOptionId]['name']
: $ret->options[$lastOptionId]
),
$token
);
Expand Down

0 comments on commit 3d73f38

Please sign in to comment.