Browse Source

Fix typehint for ViewBuilder::setClassName()

Fixes #12805
Mark Story 7 years ago
parent
commit
409331bcb8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/View/ViewBuilder.php

+ 3 - 2
src/View/ViewBuilder.php

@@ -637,9 +637,10 @@ class ViewBuilder implements JsonSerializable, Serializable
      * Sets the view classname.
      *
      * Accepts either a short name (Ajax) a plugin name (MyPlugin.Ajax)
-     * or a fully namespaced name (App\View\AppView).
+     * or a fully namespaced name (App\View\AppView) or null to use the
+     * View class provided by CakePHP.
      *
-     * @param string $name The class name for the view.
+     * @param string|null $name The class name for the view.
      * @return $this
      */
     public function setClassName($name)