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 bd3bc69

Browse filesBrowse files
minor #24345 [Routing] Enhance PHP DSL traits docblocks (ogizanagi)
This PR was merged into the 3.4 branch. Discussion ---------- [Routing] Enhance PHP DSL traits docblocks | Q | A | ------------- | --- | Branch? | 3.4 <!-- see comment below --> | Bug fix? | no | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | N/A <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Commits ------- 7d749bf [Routing] Enhance PHP DSL traits docblocks
2 parents 890f25a + 7d749bf commit bd3bc69
Copy full SHA for bd3bc69

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎src/Symfony/Component/Routing/Loader/Configurator/Traits/AddTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Loader/Configurator/Traits/AddTrait.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait AddTrait
2828
* Adds a route.
2929
*
3030
* @param string $name
31-
* @param string $value
31+
* @param string $path
3232
*
3333
* @return RouteConfigurator
3434
*/

‎src/Symfony/Component/Routing/Loader/Configurator/Traits/RouteTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Loader/Configurator/Traits/RouteTrait.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ final public function host($pattern)
9595
* Sets the schemes (e.g. 'https') this route is restricted to.
9696
* So an empty array means that any scheme is allowed.
9797
*
98-
* @param array $schemes
98+
* @param string[] $schemes
9999
*
100100
* @return $this
101101
*/
@@ -110,7 +110,7 @@ final public function schemes(array $schemes)
110110
* Sets the HTTP methods (e.g. 'POST') this route is restricted to.
111111
* So an empty array means that any method is allowed.
112112
*
113-
* @param array $methods
113+
* @param string[] $methods
114114
*
115115
* @return $this
116116
*/
@@ -124,7 +124,7 @@ final public function methods(array $methods)
124124
/**
125125
* Adds the "_controller" entry to defaults.
126126
*
127-
* @param callable $controller a callable or parseable pseudo-callable
127+
* @param callable|string $controller a callable or parseable pseudo-callable
128128
*
129129
* @return $this
130130
*/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.