mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/5719
State: closed
Merged: No
Note: I did not reintroduce the
getUtcmethod, since it was purposely removed indf129635cffor performance reasons,but now the “
self::$utc ? self::$utc : self::$utc = new \DateTimeZone('UTC')” logic is duplicated in 2 places, not sure if OK...Edit: After checking, I guess it is OK, because commit
df129635cfactually reverted (partly) the refactoring of(self::$utc) ? self::$utc : (self::$utc = new \DateTimeZone('UTC'))intoself::getUtc()which was done in commit93806a8036, and the net result diff93806a8036%5E...df129635cf2de5f137145af478335bcda78ed019 shows that the ternary logic was already duplicated originally.