Skip to content

Commit bf4de5d

Browse files
author
mikolajmeller
committed
fix(PLATFORM-10832): fix UsingData for mobile
1 parent c94c336 commit bf4de5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UsingDataHooks.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ static function ( Parser $dataParser ) use ( $text, $title, $parser ) {
138138
}
139139

140140
private function makeDataParserAndRun( Parser $parser, callable $callback ): void {
141-
$hookRunnerProperty = new ReflectionProperty( $parser, 'hookRunner' );
141+
$hookRunnerProperty = new ReflectionProperty( Parser::class, 'hookRunner' );
142142
$originalHookRunner = $hookRunnerProperty->getValue( $parser );
143143

144-
$hookContainerProperty = new ReflectionProperty( $originalHookRunner, 'container' );
144+
$hookContainerProperty = new ReflectionProperty( HookRunner::class, 'container' );
145145
$hookContainer = $hookContainerProperty->getValue( $originalHookRunner );
146146

147147
$newHookRunner = new class ( $hookContainer ) extends HookRunner {

0 commit comments

Comments
 (0)