From 0a55b7a0192420371ce1889832aea11b2a146b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gamez?= Date: Sat, 22 Aug 2026 23:19:05 +0200 Subject: [PATCH] Remove deprecated Clock interface --- CHANGELOG.md | 5 ++++- composer.json | 5 +---- src/Clock.php | 15 --------------- src/Clock/FrozenClock.php | 3 +-- src/Clock/LocalizedClock.php | 4 ++-- src/Clock/MinuteClock.php | 3 +-- src/Clock/SystemClock.php | 4 ++-- src/Clock/UTCClock.php | 4 ++-- src/Clock/WrappingClock.php | 3 +-- 9 files changed, 14 insertions(+), 32 deletions(-) delete mode 100644 src/Clock.php diff --git a/CHANGELOG.md b/CHANGELOG.md index b525b78..77a4c5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,12 @@ ## Unreleased +Removed the deprecated `Beste\Clock` interface. Clock implementations now implement +`Psr\Clock\ClockInterface` directly. + ## 3.1.0 - 2026-08-22 -Deprecates `Beste\Clock` in favor of `Psr\Clock\ClockInterface`. The implementations continue to implement +Deprecated `Beste\Clock` in favor of `Psr\Clock\ClockInterface`. The implementations continue to implement the deprecated interface for backwards compatibility. Please type against `Psr\Clock\ClockInterface`. `Beste\Clock` will be removed in 4.0. diff --git a/composer.json b/composer.json index a54bd34..03963d1 100644 --- a/composer.json +++ b/composer.json @@ -24,10 +24,7 @@ "autoload": { "psr-4": { "Beste\\Clock\\": "src/Clock" - }, - "files": [ - "src/Clock.php" - ] + } }, "autoload-dev": { "psr-4": { diff --git a/src/Clock.php b/src/Clock.php deleted file mode 100644 index ac77d4e..0000000 --- a/src/Clock.php +++ /dev/null @@ -1,15 +0,0 @@ -