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 7d749bf

Browse filesBrowse files
committed
[Routing] Enhance PHP DSL traits docblocks
1 parent f56f28b commit 7d749bf
Copy full SHA for 7d749bf

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.