Page MenuHomePhabricator

D9434.diff
No OneTemporary

D9434.diff

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
@@ -462,7 +462,7 @@
$node,
self::LINT_PHP_53_FEATURES,
"This codebase targets PHP 5.2.3, but `{$name}()` was not ".
- "introduced until PHP {$version}.");
+ "introduced until PHP {$version['min']}.");
} else if (array_key_exists($name, $compat_info['params'])) {
$params = $call->getChildOfType(1, 'n_CALL_PARAMETER_LIST');
foreach (array_values($params->getChildren()) as $i => $param) {
@@ -495,7 +495,7 @@
$node,
self::LINT_PHP_53_FEATURES,
"This codebase targets PHP 5.2.3, but `{$name}` was not ".
- "introduced until PHP {$version}.");
+ "introduced until PHP {$version['min']}.");
}
}

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 5, 8:20 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7224158
Default Alt Text
D9434.diff (925 B)

Event Timeline