Fix PHP compat

This commit is contained in:
Eric Lippmann 2022-02-08 19:58:43 +01:00
parent 91c0ff9d05
commit 25acc9602e
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ CSS;
// we can't just access the light mode definitions in the calls above.
// The LightModeVisitor ensures that all calls have access to the environment in which the mode was defined.
// Finally, the rules are merged so that the light mode calls are also rendered to CSS.
$rules = new ReflectionProperty($parser::class, 'rules');
$rules = new ReflectionProperty(get_class($parser), 'rules');
$rules->setAccessible(true);
$evald->rules = array_merge(
$evald->rules,