Holger Segnitz

Results 2 issues of Holger Segnitz

The Problem was the not-type-safe null-check in the PropelDateTime util class. Passing an Integer 0 (that e.g. comes from the SplFileInfo::getMtime()) to the setter of the field, results in the...

The offending code: ``` public static function newInstance($value, ?DateTimeZone $timeZone = null, string $dateTimeClass = 'DateTime') { if ($value instanceof DateTimeInterface) { return $value; } **if (!$value) {** // ''...