From afd46589c216118ecd48ff2b95d77596af1e57ed Mon Sep 17 00:00:00 2001 From: kylekatarnls Date: Mon, 3 Jun 2024 21:18:41 +0200 Subject: [PATCH] Fix PHP 7.4 compatibility Fix #3034 --- src/Carbon/Traits/Comparison.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Carbon/Traits/Comparison.php b/src/Carbon/Traits/Comparison.php index c7f49f49..daee19cc 100644 --- a/src/Carbon/Traits/Comparison.php +++ b/src/Carbon/Traits/Comparison.php @@ -995,10 +995,7 @@ public function is(string $tester) } if (preg_match('/^(?:Jan|January|Feb|February|Mar|March|Apr|April|May|Jun|June|Jul|July|Aug|August|Sep|September|Oct|October|Nov|November|Dec|December)$/i', $tester)) { - return $this->isSameMonth( - $this->transmitFactory(static fn () => static::parse($tester)), - false, - ); + return $this->isSameMonth(static::parse($tester), false); } if (preg_match('/^\d{3,}-\d{1,2}$/', $tester)) {