Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15408626
D14567.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
720 B
Referenced Files
None
Subscribers
None
D14567.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 12:18 AM (5 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712216
Default Alt Text
D14567.diff (720 B)
Attached To
Mode
D14567: Fix a compatibility issue with `ArcanistUnsafeDynamicStringXHPASTLinterRule`
Attached
Detach File
Event Timeline
Log In to Comment