Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit e59f2d8

Browse files
committed
Updates to exception message introduced in #289
1 parent 400a890 commit e59f2d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Adapter/Driver/Pdo/Pdo.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,9 @@ public function formatParameterName($name, $type = null)
307307
// @see https://bugs.php.net/bug.php?id=43130
308308
if (preg_match('/[^a-zA-Z0-9_]/', $name)) {
309309
throw new Exception\RuntimeException(sprintf(
310-
"The PDO param %s contains characters not allowed. " .
311-
"You can use only letter, digit, and underscore (_)",
310+
'The PDO param %s contains invalid characters.'
311+
. ' Only alphabetic characters, digits, and underscores (_)'
312+
. ' are allowed.',
312313
$name
313314
));
314315
}

0 commit comments

Comments
 (0)