Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22423280
ArcanistVariableVariableXHPASTLinterRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
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
Sat, Nov 28, 03:32 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1210489
Default Alt Text
ArcanistVariableVariableXHPASTLinterRule.php (539 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline