Skip to content

Commit 51165b7

Browse files
Consistently throw exceptions on a single line
1 parent d9bcd7e commit 51165b7

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
@@ -152,14 +152,7 @@ private function resolve($value)
152152
return (string) $resolved;
153153
}
154154

155-
throw new RuntimeException(sprintf(
156-
'The container parameter "%s", used in the route configuration value "%s", '.
157-
'must be a string or numeric, but it is of type %s.',
158-
$match[1],
159-
$value,
160-
\gettype($resolved)
161-
)
162-
);
155+
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)));
163156
}, $value);
164157

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

0 commit comments

Comments
 (0)