mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add deprecated flag to methods that are removed in 3.0.
A few methods in Controller were not marked as deprecated, but already removed in 3.0. Shore up that difference. Refs #3105
This commit is contained in:
parent
75fcc7c2f8
commit
de9a5a5845
1 changed files with 2 additions and 0 deletions
|
@ -874,6 +874,7 @@ class Controller extends Object implements CakeEventListener {
|
|||
* 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();
|
||||
|
@ -892,6 +893,7 @@ class Controller extends Object implements CakeEventListener {
|
|||
*
|
||||
* @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();
|
||||
|
|
Loading…
Reference in a new issue