From 74b7f345fcecf9cbc9a8b2e4c6480843bf9d86f3 Mon Sep 17 00:00:00 2001 From: juniwalk Date: Thu, 2 May 2024 13:30:49 +0200 Subject: [PATCH] Allow latest juniwalk/{orm, utils} packages --- composer.json | 4 ++-- src/Chronicler.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 8c98940..efe4c45 100644 --- a/composer.json +++ b/composer.json @@ -23,8 +23,8 @@ "require": { "php": ">=8.1", "doctrine/orm": "^2.0|^3.0", - "juniwalk/orm": "^0.7|^0.8|^0.9", - "juniwalk/utils": "^3.0" + "juniwalk/orm": "^0.7|^0.8|^0.9|^0.10", + "juniwalk/utils": "^3.0|^4.0" }, "require-dev": { diff --git a/src/Chronicler.php b/src/Chronicler.php index bab05d2..cc9650e 100644 --- a/src/Chronicler.php +++ b/src/Chronicler.php @@ -15,7 +15,6 @@ use JuniWalk\Nestor\Exceptions\RecordExistsException; use JuniWalk\Nestor\Exceptions\RecordFailedException; use JuniWalk\Nestor\Exceptions\RecordNotValidException; -use JuniWalk\Utils\Strings; use Throwable; final class Chronicler @@ -97,7 +96,7 @@ public function isRecorded(Record $record, ?string $period = null): bool return $qb; } - $dateEnd = new DateTime('-'.Strings::trim($period, '+-')); + $dateEnd = new DateTime('-'.trim($period, '+-')); $dateStart = new DateTime; $qb->andWhere('e.date < :dateStart AND e.date > :dateEnd')