summaryrefslogtreecommitdiffstats
path: root/src/Components/OptionsArray.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-21 01:11:49 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-21 01:11:49 +0300
commite5fc8680b2069da1ddf3f872b33c831a72b299e9 (patch)
treed0d7fd49e1fcdc5ae51218dfaa2fdede043d0cd1 /src/Components/OptionsArray.php
parente6e6e6235bee524ca0184b3a8dcfecaa5cf42ac6 (diff)
downloadsql-parser-e5fc8680b2069da1ddf3f872b33c831a72b299e9.zip
sql-parser-e5fc8680b2069da1ddf3f872b33c831a72b299e9.tar.gz
sql-parser-e5fc8680b2069da1ddf3f872b33c831a72b299e9.tar.bz2
Improved localization.
Diffstat (limited to 'src/Components/OptionsArray.php')
-rw-r--r--src/Components/OptionsArray.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Components/OptionsArray.php b/src/Components/OptionsArray.php
index 487eefd..d1b9952 100644
--- a/src/Components/OptionsArray.php
+++ b/src/Components/OptionsArray.php
@@ -137,7 +137,11 @@ class OptionsArray extends Component
// real options (e.g. if there are 5 options, the first
// fake ID is 6).
if (isset($ret->options[$lastOptionId])) {
- $parser->error('This option conflicts with \'' . $ret->options[$lastOptionId] . '\'.', $token);
+ $parser->error(
+ 'This option conflicts with "%1$s".',
+ $token,
+ array($ret->options[$lastOptionId])
+ );
$lastOptionId = $lastAssignedId++;
}
} else {