Skip to content

Commit 578de86

Browse files
Merge branch '2.8' into 3.4
* 2.8: Consistently throw exceptions on a single line fix fopen calls Update .editorconfig
2 parents e6b5972 + 51165b7 commit 578de86

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Routing/Router.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,7 @@ private function resolve($value)
159159
return (string) $resolved;
160160
}
161161

162-
throw new RuntimeException(sprintf(
163-
'The container parameter "%s", used in the route configuration value "%s", '.
164-
'must be a string or numeric, but it is of type %s.',
165-
$match[1],
166-
$value,
167-
\gettype($resolved)
168-
)
169-
);
162+
throw new RuntimeException(sprintf('The container parameter "%s", used in the route configuration value "%s", must be a string or numeric, but it is of type %s.', $match[1], $value, \gettype($resolved)));
170163
}, $value);
171164

172165
return str_replace('%%', '%', $escapedValue);

0 commit comments

Comments
 (0)