Skip to content

Commit 54c790b

Browse files
committed
fix
1 parent 99daffe commit 54c790b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • tests/Issues/ScopeNotAvailable/FixtureMatchToSwitchReflection

tests/Issues/ScopeNotAvailable/FixtureMatchToSwitchReflection/fixture.php.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ final class ServiceValueResolver
3333
} catch (\RuntimeException $e) {
3434

3535
$r = new \ReflectionProperty($e, 'message');
36-
$r->setAccessible(true);
36+
if (PHP_VERSION_ID < 80100) {
37+
$r->setAccessible(true);
38+
}
3739
$r->setValue($e, $message);
3840

3941
throw $e;

0 commit comments

Comments
 (0)