Page MenuHomeSealhub

ArcanistVariableVariableXHPASTLinterRule.php
No OneTemporary

ArcanistVariableVariableXHPASTLinterRule.php

<?php
final class ArcanistVariableVariableXHPASTLinterRule
extends ArcanistXHPASTLinterRule {
const ID = 3;
public function getLintName() {
return pht('Use of Variable Variable');
}
public function process(XHPASTNode $root) {
$vvars = $root->selectDescendantsOfType('n_VARIABLE_VARIABLE');
foreach ($vvars as $vvar) {
$this->raiseLintAtNode(
$vvar,
pht(
'Rewrite this code to use an array. Variable variables are unclear '.
'and hinder static analysis.'));
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Aug 13, 16:53 (23 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
871197
Default Alt Text
ArcanistVariableVariableXHPASTLinterRule.php (539 B)

Event Timeline