mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Replace function is_integer (alias) by is_int.
Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
parent
9dcac18b87
commit
9b6b258fed
2 changed files with 2 additions and 2 deletions
|
@ -348,7 +348,7 @@ class CookieComponent extends Object {
|
|||
return $this->__expires;
|
||||
}
|
||||
$this->__reset = $this->__expires;
|
||||
if (is_integer($expires) || is_numeric($expires)) {
|
||||
if (is_int($expires) || is_numeric($expires)) {
|
||||
return $this->__expires = $now + intval($expires);
|
||||
}
|
||||
return $this->__expires = strtotime($expires, $now);
|
||||
|
|
|
@ -63,7 +63,7 @@ class TimeHelper extends AppHelper {
|
|||
if (empty($dateString)) {
|
||||
return false;
|
||||
}
|
||||
if (is_integer($dateString) || is_numeric($dateString)) {
|
||||
if (is_int($dateString) || is_numeric($dateString)) {
|
||||
$date = intval($dateString);
|
||||
} else {
|
||||
$date = strtotime($dateString);
|
||||
|
|
Loading…
Reference in a new issue