Move to PHPStan level 4

This commit is contained in:
Yassine Guedidi
2025-04-05 17:34:00 +02:00
parent 31e1be4191
commit b4483023e6
22 changed files with 116 additions and 104 deletions

View File

@ -143,11 +143,8 @@ class ContentProxy
}
try {
// is it already a DateTime?
// (it's inside the try/catch in case of fail to be parse time string)
if (!$date instanceof \DateTime) {
$date = new \DateTime($date);
}
$date = new \DateTime($date);
$entry->setPublishedAt($date);
} catch (\Exception $e) {