Skip to content

Commit a5aaadb

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Fix quotes in exception messages
2 parents d60ecc4 + dc11866 commit a5aaadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RouteCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private static function compilePattern(Route $route, string $pattern, bool $isHo
147147
}
148148

149149
if (\strlen($varName) > self::VARIABLE_MAXIMUM_LENGTH) {
150-
throw new \DomainException(sprintf('Variable name "%s" cannot be longer than %s characters in route pattern "%s". Please use a shorter name.', $varName, self::VARIABLE_MAXIMUM_LENGTH, $pattern));
150+
throw new \DomainException(sprintf('Variable name "%s" cannot be longer than %d characters in route pattern "%s". Please use a shorter name.', $varName, self::VARIABLE_MAXIMUM_LENGTH, $pattern));
151151
}
152152

153153
if ($isSeparator && $precedingText !== $precedingChar) {

0 commit comments

Comments
 (0)