mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
Remove last traces of date functions in favor of DateTimeImmutable
This commit is contained in:
parent
c6d2d77537
commit
97821d0dc3
4 changed files with 7 additions and 13 deletions
|
@ -188,7 +188,7 @@ class HttpInput{
|
|||
try{
|
||||
return intval($var);
|
||||
}
|
||||
catch(Exception){
|
||||
catch(\Exception){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ class HttpInput{
|
|||
try{
|
||||
return floatval($var);
|
||||
}
|
||||
catch(Exception){
|
||||
catch(\Exception){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@ -215,8 +215,7 @@ class HttpInput{
|
|||
try{
|
||||
return new DateTimeImmutable($var);
|
||||
}
|
||||
catch(Exception){
|
||||
vdd('q');
|
||||
catch(\Exception){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue