Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
StaffCollab committed May 1, 2024
2 parents 21e5590 + 626f96f commit 588f62c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HebrewDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace StaffCollab\HebrewDate;

use Zman\Zman;
use Carbon\CarbonPeriodImmutable;
use Illuminate\Support\Collection;
use Zman\Exceptions\InvalidDateException;
use Zman\Zman;

class HebrewDate extends Zman
{
Expand Down Expand Up @@ -147,7 +147,7 @@ public function getHebrewYearsPeriod($lang = 'hebrew'): Collection

public static function createFromJewishDate($year, $month, $day): self
{
if ($month === 6 && !isJewishLeapYear($year)) {
if ($month === 6 && ! isJewishLeapYear($year)) {
throw new InvalidDateException("{$year} is not a leap year.");
}

Expand Down

0 comments on commit 588f62c

Please sign in to comment.