mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix strict warnings on Validation class.
This commit is contained in:
parent
25e9aaf6c8
commit
535b45b600
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ class Validation {
|
|||
* @see Validation::date
|
||||
* @see Validation::time
|
||||
*/
|
||||
public function datetime($check, $dateFormat = 'ymd', $regex = null) {
|
||||
public static function datetime($check, $dateFormat = 'ymd', $regex = null) {
|
||||
$valid = false;
|
||||
$parts = explode(' ', $check);
|
||||
if (!empty($parts) && count($parts) > 1) {
|
||||
|
|
Loading…
Reference in a new issue