@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | * @param string $cacheKey generated cache key to store data. |
397 | 397 | * @param string $route the route (e.g. `site/index`). |
398 | 398 | * @param array $params rule params. |
399 | - * @return boolean|string the created URL |
|
399 | + * @return string|false the created URL |
|
400 | 400 | * @see createUrl() |
401 | 401 | * @since 2.0.8 |
402 | 402 | */ |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | /** |
419 | 419 | * Store rule (e.g. [[UrlRule]]) to internal cache |
420 | - * @param $cacheKey |
|
420 | + * @param string $cacheKey |
|
421 | 421 | * @param UrlRuleInterface $rule |
422 | 422 | * @since 2.0.8 |
423 | 423 | */ |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | * Note that unlike [[\yii\helpers\Url::toRoute()]], this method always treats the given route |
435 | 435 | * as an absolute route. |
436 | 436 | * |
437 | - * @param string|array $params use a string to represent a route (e.g. `site/index`), |
|
437 | + * @param string[] $params use a string to represent a route (e.g. `site/index`), |
|
438 | 438 | * or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`). |
439 | 439 | * @param string $scheme the scheme to use for the url (either `http` or `https`). If not specified |
440 | 440 | * the scheme of the current request will be used. |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | * @param UrlManager $manager the URL manager |
333 | 333 | * @param string $route the route. It should not have slashes at the beginning or the end. |
334 | 334 | * @param array $params the parameters |
335 | - * @return string|boolean the created URL, or false if this rule cannot be used for creating this URL. |
|
335 | + * @return false|string the created URL, or false if this rule cannot be used for creating this URL. |
|
336 | 336 | */ |
337 | 337 | public function createUrl($manager, $route, $params) |
338 | 338 | { |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | * When found - replaces this placeholder key with a appropriate name of matching parameter. |
424 | 424 | * Used in [[parseRequest()]], [[createUrl()]]. |
425 | 425 | * |
426 | - * @param array $matches result of `preg_match()` call |
|
426 | + * @param string[] $matches result of `preg_match()` call |
|
427 | 427 | * @return array input array with replaced placeholder keys |
428 | 428 | * @see placeholders |
429 | 429 | * @since 2.0.7 |