Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jan 24, 2024
1 parent f70156e commit 15f5f62
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/UrlGeneratorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
/**
* `UrlGeneratorInterface` allows generating URL given route name, arguments, and query parameters.
*
* @psalm-type ArgumentType = scalar|Stringable|null
* @psalm-type ArgumentsType = array<string, ArgumentType>
* @psalm-type UrlArgumentsType = array<string,scalar|Stringable|null>
*/
interface UrlGeneratorInterface
{
Expand All @@ -25,7 +24,7 @@ interface UrlGeneratorInterface
*
* @return string URL generated.
*
* @psalm-param ArgumentsType $arguments
* @psalm-param UrlArgumentsType $arguments
*/
public function generate(string $name, array $arguments = [], array $queryParameters = []): string;

Expand All @@ -42,7 +41,7 @@ public function generate(string $name, array $arguments = [], array $queryParame
*
* @return string URL generated.
*
* @psalm-param ArgumentsType $arguments
* @psalm-param UrlArgumentsType $arguments
*/
public function generateAbsolute(
string $name,
Expand All @@ -60,7 +59,7 @@ public function generateAbsolute(
* @param string|null $fallbackRouteName Name of a route that should be used if current route.
* can not be determined.
*
* @psalm-param ArgumentsType $replacedArguments
* @psalm-param UrlArgumentsType $replacedArguments
*/
public function generateFromCurrent(
array $replacedArguments,
Expand Down

0 comments on commit 15f5f62

Please sign in to comment.