Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13989987
D9040.id21465.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1013 B
Referenced Files
None
Subscribers
None
D9040.id21465.diff
View Options
diff --git a/src/lint/linter/ArcanistPhutilXHPASTLinter.php b/src/lint/linter/ArcanistPhutilXHPASTLinter.php
--- a/src/lint/linter/ArcanistPhutilXHPASTLinter.php
+++ b/src/lint/linter/ArcanistPhutilXHPASTLinter.php
@@ -107,7 +107,7 @@
}
- private function lintUnsafeDynamicString($root) {
+ private function lintUnsafeDynamicString(XHPASTNode $root) {
$safe = $this->dynamicStringFunctions + array(
'pht' => 0,
@@ -175,7 +175,7 @@
}
- private function lintArrayCombine($root) {
+ private function lintArrayCombine(XHPASTNode $root) {
$function_calls = $root->selectDescendantsOfType('n_FUNCTION_CALL');
foreach ($function_calls as $call) {
$name = $call->getChildByIndex(0)->getConcreteString();
@@ -200,7 +200,7 @@
}
}
- private function lintDeprecatedFunctions($root) {
+ private function lintDeprecatedFunctions(XHPASTNode $root) {
$map = $this->deprecatedFunctions;
$function_calls = $root->selectDescendantsOfType('n_FUNCTION_CALL');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 23, 12:18 AM (3 w, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728071
Default Alt Text
D9040.id21465.diff (1013 B)
Attached To
Mode
D9040: Use PHP type hinting in `ArcanistXHPASTLinter`.
Attached
Detach File
Event Timeline
Log In to Comment