protected function alterNext($rule) { $options = []; if ($rule['tag'] == '>') { $options['checkGrandChildren'] = false; } return $options; }