Skip to content

Commit b4898c7

Browse files
authored
Skip setAccessible if PHP < 8.1
1 parent bd13f69 commit b4898c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function getMethods($boot)
3131
$c = new ReflectionClass(Carbon::now());
3232
$macros = $c->getProperty('globalMacros');
3333

34-
if (PHP_VERSION_ID < 80500) {
34+
if (PHP_VERSION_ID < 80100) {
3535
$macros->setAccessible(true);
3636
}
3737

0 commit comments

Comments
 (0)