Page MenuHomeSealhub

ArcanistVariableVariableXHPASTLinterRule.php
No OneTemporary

Authored By
Unknown
Size
539 B
Referenced Files
None
Subscribers
None

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
Sat, Nov 28, 01:31 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1210489
Default Alt Text
ArcanistVariableVariableXHPASTLinterRule.php (539 B)

Event Timeline