From 23696d9b4c9b8e1217e45c9b9ef39b6ae4be769b Mon Sep 17 00:00:00 2001 From: upstream Date: Thu, 24 Sep 2026 09:02:10 +0200 Subject: [PATCH] Upstream thephpleague/period state of the touched files before 7417a30890 --- src/DurationTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/DurationTest.php b/src/DurationTest.php index fd71bbb..12c03db 100644 --- a/src/DurationTest.php +++ b/src/DurationTest.php @@ -292,10 +292,8 @@ final class DurationTest extends TestCase } /** - * A signed chronometer or time string must apply the sign to the whole - * duration, not only to the hour component. Previously the sign was lost - * entirely when the hour was zero and, when the hour was present, only the - * hour was negated while minutes and seconds stayed positive. + * A sign applies to the whole duration, not just the hour. It used to be + * lost when the hour was zero, and to negate only the hour otherwise. */ #[DataProvider('signedDurationProvider')] public function testSignedStringsApplySignToWholeDuration(string $method, string $input, string $reference, string $expected): void