Skip to content
Permalink
Browse files

formatting

  • Loading branch information...
taylorotwell committed Oct 28, 2019
1 parent 3d9b268 commit 71af732b6b00ab148cd23b95aca4e05bcb86c242
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/Illuminate/Routing/UrlGenerator.php
  2. +1 −1 tests/Routing/RoutingUrlGeneratorTest.php
@@ -322,9 +322,9 @@ public function signedRoute($name, $parameters = [], $expiration = null, $absolu
{
$parameters = $this->formatParameters($parameters);
if(array_key_exists('signature', $parameters)) {
if (array_key_exists('signature', $parameters)) {
throw new InvalidArgumentException(
'Do not use [signature] as a parameter name when creating a signed route.'
'"Signature" is a reserved parameter when generating signed routes. Please rename your route parameter.'
);
}
@@ -644,7 +644,7 @@ public function testSignedUrlParameterCannotBeNamedSignature() {
$routes->add($route);
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Do not use [signature] as a parameter name when creating a signed route.');
$this->expectExceptionMessage('reserved');
Request::create($url->signedRoute('foo', ['signature' => 'bar']));
}

0 comments on commit 71af732

Please sign in to comment.
You can’t perform that action at this time.