BaseType::isCorrectType() method > make static

This commit is contained in:
Meritoo
2019-05-05 23:05:42 +02:00
parent dd5ac0f7e6
commit a6b2704c66
10 changed files with 86 additions and 79 deletions

View File

@@ -76,7 +76,7 @@ class Date
* Type of period is incorrect?
* Nothing to do
*/
if (!(new DatePeriod())->isCorrectType($period)) {
if (!DatePeriod::isCorrectType($period)) {
return null;
}