Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 01fc2b4

Browse filesBrowse files
committed
minor #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 #32176. Commits ------- 753bf7e Fixed type annotation.
2 parents 85ac1a6 + 753bf7e commit 01fc2b4
Copy full SHA for 01fc2b4

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.