Browse Source

Merge pull request #10409 from tenkoma/fix-phpdoc-routebuilder

Fix PhpDoc for RouteBuilder::redirect()
Mark Sch 9 years ago
parent
commit
635a094c5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Routing/RouteBuilder.php

+ 1 - 1
src/Routing/RouteBuilder.php

@@ -566,7 +566,7 @@ class RouteBuilder
      *   routes that end in `*` are greedy. As you can remap URLs and not loose any passed args.
      *
      * @param string $route A string describing the template of the route
-     * @param array $url An URL to redirect to. Can be a string or a Cake array-based URL
+     * @param array|string $url An URL to redirect to. Can be a string or a Cake array-based URL
      * @param array $options An array matching the named elements in the route to regular expressions which that
      *   element should match. Also contains additional parameters such as which routed parameters should be
      *   shifted into the passed arguments. As well as supplying patterns for routing parameters.