Browse Source

minor: fix CI on PHP 8.3 (#6827)

Kuba Werłos 2 years ago
parent
commit
11b8af4f00
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/Fixer/ControlStructure/NoUselessElseFixerTest.php

+ 1 - 1
tests/Fixer/ControlStructure/NoUselessElseFixerTest.php

@@ -655,7 +655,7 @@ else?><?php echo 5;',
         Tokens::clearCache();
         $tokens = Tokens::fromCode($source);
 
-        $method = new \ReflectionMethod($this->fixer, 'getPreviousBlock');
+        $method = new \ReflectionMethod(get_parent_class($this->fixer), 'getPreviousBlock');
         $method->setAccessible(true);
 
         $result = $method->invoke($this->fixer, $tokens, $index);