Skip to content

Commit

Permalink
Fix PHP 8.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jul 23, 2023
1 parent d475a41 commit c322cbe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/CarbonPeriod/MacroTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ class MacroTest extends AbstractTestCase
protected function tearDown(): void
{
$reflection = new ReflectionClass($this->periodClass);

$macrosProperty = $reflection->getProperty('macros');

$macrosProperty->setAccessible(true);
$macrosProperty->setValue([]);
$reflection->setStaticPropertyValue('macros', []);

parent::tearDown();
}
Expand Down

0 comments on commit c322cbe

Please sign in to comment.