Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15512190
D9471.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
807 B
Referenced Files
None
Subscribers
None
D9471.diff
View Options
diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php
--- a/src/lint/linter/ArcanistXHPASTLinter.php
+++ b/src/lint/linter/ArcanistXHPASTLinter.php
@@ -487,9 +487,9 @@
$classes = $root->selectDescendantsOfType('n_CLASS_NAME');
foreach ($classes as $node) {
- $name = strtolower($node->getConcreteString());
- $version = idx($compat_info['interfaces'], $name);
- $version = idx($compat_info['classes'], $name, $version);
+ $name = $node->getConcreteString();
+ $version = idx($compat_info['interfaces'], strtolower($name));
+ $version = idx($compat_info['classes'], strtolower($name), $version);
if ($version && version_compare($version['min'], $required, '>')) {
$this->raiseLintAtNode(
$node,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 18, 8:38 AM (1 w, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7221406
Default Alt Text
D9471.diff (807 B)
Attached To
Mode
D9471: Present case of class and interface names.
Attached
Detach File
Event Timeline
Log In to Comment