public static function setUpBeforeClass() { $fixer = new UnneededControlParenthesesFixer(); $controlStatementsProperty = new \ReflectionProperty($fixer, 'controlStatements'); $controlStatementsProperty->setAccessible(true); self::$defaultStatements = $controlStatementsProperty->getValue($fixer); }
public static function setUpBeforeClass() { $controlStatementsProperty = new \ReflectionProperty('Symfony\\CS\\Fixer\\Symfony\\UnneededControlParenthesesFixer', 'controlStatements'); $controlStatementsProperty->setAccessible(true); self::$defaultStatements = $controlStatementsProperty->getValue(null); }