Skip to content

Commit 01fc2b4

Browse files
committed
minor symfony#32185 [Routing] Fixed type annotation (derrabus)
This PR was merged into the 3.4 branch. Discussion ---------- [Routing] Fixed type annotation | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A The `UrlGeneratorInterface::generate()` method expects an array as argument `$parameters`, but the docblock does not reflect that. This PR fixes the type. Discovered while working on symfony#32176. Commits ------- 753bf7e Fixed type annotation.
2 parents 85ac1a6 + 753bf7e commit 01fc2b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ interface UrlGeneratorInterface extends RequestContextAwareInterface
7171
*
7272
* The special parameter _fragment will be used as the document fragment suffixed to the final URL.
7373
*
74-
* @param string $name The name of the route
75-
* @param mixed $parameters An array of parameters
76-
* @param int $referenceType The type of reference to be generated (one of the constants)
74+
* @param string $name The name of the route
75+
* @param mixed[] $parameters An array of parameters
76+
* @param int $referenceType The type of reference to be generated (one of the constants)
7777
*
7878
* @return string The generated URL
7979
*

0 commit comments

Comments
 (0)