Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15395725
D12279.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12279.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
@@ -495,8 +495,8 @@
$name = $node->getConcreteString();
$version = idx($compat_info['functions'], $name, array());
- $min = idx($version, 'min');
- $max = idx($version, 'max');
+ $min = idx($version, 'php.min');
+ $max = idx($version, 'php.max');
// Check if whitelisted.
$whitelisted = false;
@@ -581,8 +581,8 @@
$name = $node->getConcreteString();
$version = idx($compat_info['interfaces'], $name, array());
$version = idx($compat_info['classes'], $name, $version);
- $min = idx($version, 'min');
- $max = idx($version, 'max');
+ $min = idx($version, 'php.min');
+ $max = idx($version, 'php.max');
// Check if whitelisted.
$whitelisted = false;
foreach (idx($whitelist['class'], $name, array()) as $range) {
@@ -629,8 +629,8 @@
foreach ($constants as $node) {
$name = $node->getConcreteString();
$version = idx($compat_info['constants'], $name, array());
- $min = idx($version, 'min');
- $max = idx($version, 'max');
+ $min = idx($version, 'php.min');
+ $max = idx($version, 'php.max');
if ($min && version_compare($min, $this->version, '>')) {
$this->raiseLintAtNode(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 9:17 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223427
Default Alt Text
D12279.diff (1 KB)
Attached To
Mode
D12279: Fix parsing of PHP compatibility info
Attached
Detach File
Event Timeline
Log In to Comment