PHPstan check for level 5

Fix various issues for phpstan level 5

Start initial settings for level 6 (needs type declarations for all
vars)
This commit is contained in:
Clemens Schwaighofer
2021-10-22 11:14:00 +09:00
parent ffd1a86dcc
commit 736f822363
22 changed files with 118 additions and 78 deletions

View File

@@ -214,6 +214,8 @@ class DateTime
return 0;
} elseif ($start_date > $end_date) {
return 1;
} else {
return false;
}
}
@@ -242,6 +244,8 @@ class DateTime
return 0;
} elseif ($start_timestamp > $end_timestamp) {
return 1;
} else {
return false;
}
}