From ceab9f185f2d57b1bc0830d040061b34634c2b60 Mon Sep 17 00:00:00 2001 From: Mathew Foscarini Date: Wed, 30 Apr 2014 09:55:27 -0400 Subject: [PATCH] Removed incorrect usage of @deprecated phpDoc @deprecated is flagging the function element as deprecated in all IDE's that support phpDOC tags. There is no phpDoc tag to deprecate a function parameter. --- lib/Cake/View/View.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index d6d7a9108..2e4da861b 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -381,13 +381,12 @@ class View extends Object { * If an array, the following keys can be used: * - `config` - Used to store the cached element in a custom cache configuration. * - `key` - Used to define the key used in the Cache::write(). It will be prefixed with `element_` - * - `plugin` - Load an element from a specific plugin. This option is deprecated, see below. + * - `plugin` - (deprecated!) Load an element from a specific plugin. This option is deprecated, and + * will be removed in CakePHP 3.0. Use `Plugin.element_name` instead. * - `callbacks` - Set to true to fire beforeRender and afterRender helper callbacks for this element. * Defaults to false. * - `ignoreMissing` - Used to allow missing elements. Set to true to not trigger notices. * @return string Rendered Element - * @deprecated The `$options['plugin']` is deprecated and will be removed in CakePHP 3.0. Use - * `Plugin.element_name` instead. */ public function element($name, $data = array(), $options = array()) { $file = $plugin = null;