We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b455c0 commit f732578Copy full SHA for f732578
1 file changed
src/Fixer/ClassAndTraitVisibilityRequiredFixer.php
@@ -65,7 +65,9 @@ protected function applyFix(SplFileInfo $file, Tokens $tokens): void
65
* and "applyFix()" is final, there is no other way round it.
66
*/
67
$method = new ReflectionMethod($this->visibilityRequiredFixer, 'applyFix');
68
- $method->setAccessible(true);
+ if (version_compare(PHP_VERSION, '8.1.0', '<')) {
69
+ $method->setAccessible(true);
70
+ }
71
$method->invoke($this->visibilityRequiredFixer, $file, $tokens);
72
}
73
0 commit comments