Skip to content

Commit

Permalink
fixed issue: Undefined index: plusminus #467
Browse files Browse the repository at this point in the history
  • Loading branch information
sash04ek authored Jun 20, 2023
1 parent 198196c commit 5900345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DateTimeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function parseDuration(string $duration): \DateInterval

$invert = false;

if ('-' === $matches['plusminus']) {
if (isset($matches['plusminus']) && '-' === $matches['plusminus']) {
$invert = true;
}

Expand Down

0 comments on commit 5900345

Please sign in to comment.