Skip to content

Commit

Permalink
Add deprecated flag to methods that are removed in 3.0.
Browse files Browse the repository at this point in the history
A few methods in Controller were not marked as deprecated, but already
removed in 3.0. Shore up that difference.

Refs #3105
  • Loading branch information
markstory committed Mar 24, 2014
1 parent 75fcc7c commit de9a5a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/Controller/Controller.php
Expand Up @@ -874,6 +874,7 @@ public function setAction($action) {
* Returns number of errors in a submitted FORM.
*
* @return integer Number of errors
* @deprecated This method will be removed in 3.0
*/
public function validate() {
$args = func_get_args();
Expand All @@ -892,6 +893,7 @@ public function validate() {
*
* @param mixed A list of models as a variable argument
* @return array Validation errors, or false if none
* @deprecated This method will be removed in 3.0
*/
public function validateErrors() {
$objects = func_get_args();
Expand Down

0 comments on commit de9a5a5

Please sign in to comment.