Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22399177
ArcanistCallTimePassByReferenceXHPASTLinterRule.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
617 B
Referenced Files
None
Subscribers
None
ArcanistCallTimePassByReferenceXHPASTLinterRule.php
View Options
<?php
final
class
ArcanistCallTimePassByReferenceXHPASTLinterRule
extends
ArcanistXHPASTLinterRule
{
const
ID
=
53
;
public
function
getLintName
()
{
return
pht
(
'Call-Time Pass-By-Reference'
);
}
public
function
process
(
XHPASTNode
$root
)
{
$nodes
=
$root
->
selectDescendantsOfType
(
'n_CALL_PARAMETER_LIST'
);
foreach
(
$nodes
as
$node
)
{
$parameters
=
$node
->
getChildrenOfType
(
'n_VARIABLE_REFERENCE'
);
foreach
(
$parameters
as
$parameter
)
{
$this
->
raiseLintAtNode
(
$parameter
,
pht
(
'Call-time pass-by-reference calls are prohibited.'
));
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 27, 17:29 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1219766
Default Alt Text
ArcanistCallTimePassByReferenceXHPASTLinterRule.php (617 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline