Page MenuHomePhabricator

D14567.diff
No OneTemporary

D14567.diff

diff --git a/src/lint/linter/xhpast/rules/ArcanistUnsafeDynamicStringXHPASTLinterRule.php b/src/lint/linter/xhpast/rules/ArcanistUnsafeDynamicStringXHPASTLinterRule.php
--- a/src/lint/linter/xhpast/rules/ArcanistUnsafeDynamicStringXHPASTLinterRule.php
+++ b/src/lint/linter/xhpast/rules/ArcanistUnsafeDynamicStringXHPASTLinterRule.php
@@ -70,9 +70,11 @@
AASTNodeList $calls,
array $safe) {
- $safe = array_combine(
- array_map('strtolower', array_keys($safe)),
- $safe);
+ if ($safe) {
+ $safe = array_combine(
+ array_map('strtolower', array_keys($safe)),
+ $safe);
+ }
foreach ($calls as $call) {
$name = $call->getChildByIndex(0)->getConcreteString();

File Metadata

Mime Type
text/plain
Expires
Tue, May 14, 12:21 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6294403
Default Alt Text
D14567.diff (720 B)

Event Timeline