Skip to content

Commit 9620a13

Browse files
authored
Merge pull request #246 from cmdeviant/patch-1
Update PHPDoc for `redirect()` and `url()` functions on sfWebController
2 parents d9a1684 + c5bf8ce commit 9620a13

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/controller/sfWebController.class.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ abstract class sfWebController extends sfController
2323
/**
2424
* Generates an URL from an array of parameters.
2525
*
26-
* @param mixed $parameters An associative array of URL parameters or an internal URI as a string.
27-
* @param boolean $absolute Whether to generate an absolute URL
26+
* @param string|array $parameters An associative array of URL parameters or an internal URI as a string.
27+
* @param boolean $absolute Whether to generate an absolute URL
2828
*
2929
* @return string A URL to a symfony resource
3030
*/
@@ -168,10 +168,10 @@ public function convertUrlStringToParameters($url)
168168
/**
169169
* Redirects the request to another URL.
170170
*
171-
* @param string $url An associative array of URL parameters or an internal URI as a string
172-
* @param int $delay A delay in seconds before redirecting. This is only needed on
173-
* browsers that do not support HTTP headers
174-
* @param int $statusCode The status code
171+
* @param string|array $url An associative array of URL parameters or an internal URI as a string
172+
* @param int $delay A delay in seconds before redirecting. This is only needed on
173+
* browsers that do not support HTTP headers
174+
* @param int $statusCode The status code
175175
*
176176
* @throws InvalidArgumentException If the url argument is null or an empty string
177177
*/

0 commit comments

Comments
 (0)