Skip to content

Commit 71af732

Browse files
committed
formatting
1 parent 3d9b268 commit 71af732

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Illuminate/Routing/UrlGenerator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ public function signedRoute($name, $parameters = [], $expiration = null, $absolu
322322
{
323323
$parameters = $this->formatParameters($parameters);
324324

325-
if(array_key_exists('signature', $parameters)) {
325+
if (array_key_exists('signature', $parameters)) {
326326
throw new InvalidArgumentException(
327-
'Do not use [signature] as a parameter name when creating a signed route.'
327+
'"Signature" is a reserved parameter when generating signed routes. Please rename your route parameter.'
328328
);
329329
}
330330

tests/Routing/RoutingUrlGeneratorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public function testSignedUrlParameterCannotBeNamedSignature() {
644644
$routes->add($route);
645645

646646
$this->expectException(InvalidArgumentException::class);
647-
$this->expectExceptionMessage('Do not use [signature] as a parameter name when creating a signed route.');
647+
$this->expectExceptionMessage('reserved');
648648

649649
Request::create($url->signedRoute('foo', ['signature' => 'bar']));
650650
}

0 commit comments

Comments
 (0)