Skip to content

Commit

Permalink
Updated Carbon dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <[email protected]>
  • Loading branch information
betterthanclay committed Apr 24, 2024
1 parent 2e551ff commit c6454e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.4.3 (2024-04-24)
* Updated Carbon dependency

## v0.4.2 (2023-11-14)
* Updated Dictum dependency
* Made PHP8.1 minimum version
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"decodelabs/lucid-support": "^0.3",
"decodelabs/veneer": "^0.10.10",

"nesbot/carbon": "^2.25"
"nesbot/carbon": "^2|^3"
},
"require-dev": {
"decodelabs/phpstan-decodelabs": "^0.6",
Expand Down
5 changes: 4 additions & 1 deletion src/Constraint/DateTime/Max.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ public function getParameter(): mixed
public function validate(
mixed $value
): Generator {
if ($value === null) {
if (
$value === null ||
$this->max === null
) {
return true;
}

Expand Down

0 comments on commit c6454e5

Please sign in to comment.