dualfroz 4b7172e13c fix: apply sign of chronometer and time strings to whole Duration
Duration::fromChronoString() and Duration::fromTimeString() only negated the
hour component of a signed input. When the hour was zero or absent the sign was
silently dropped, and when it was present the minute/second/fraction components
stayed positive, producing a duration that did not match the input. Prefix every
unit token with the sign so the whole duration is negated consistently.
2026-09-06 00:59:14 +02:00
S
Description
My contributions to thephpleague/period: 3 commits
46 KiB
0 Stars 1 Watchers 0 Forks
Languages
PHP 100%