ソースを参照

Merge pull request #13546 from cakephp/ADmad-patch-1

Removed deprecated tag.
Mark Sch 6 年 前
コミット
bbd4abe94c
1 ファイル変更5 行追加2 行削除
  1. 5 2
      src/View/ViewVarsTrait.php

+ 5 - 2
src/View/ViewVarsTrait.php

@@ -35,10 +35,13 @@ trait ViewVarsTrait
     public $viewClass;
 
     /**
-     * Variables for the view
+     * Variables for the view.
+     *
+     * Deprecated: This property will be removed in 4.x.
+     * Inside controller context use `$this->set()` instead, also see `$this->viewBuilder()->getVar()`.
+     * In view context it will be a protected property `View::$viewVars`.
      *
      * @var array
-     * @deprecated 3.7.0 Use `$this->set()` instead, also see `$this->viewBuilder()->getVar()`.
      */
     public $viewVars = [];