Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7859745
ArcanistVariableVariableXHPASTLinterRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
539 B
Referenced Files
None
Subscribers
None
ArcanistVariableVariableXHPASTLinterRule.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment