Skip to content

Commit

Permalink
Allow latest juniwalk/{orm, utils} packages
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed May 2, 2024
1 parent 1422df0 commit 74b7f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions src/Chronicler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 74b7f34

Please sign in to comment.