mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-09 16:32:39 +01:00
Fix "array to string" conversion error.
Summary: Fixes T5298. This bug was probably introduced in D9248. It looks like I forgot to update some references to `$version`. Test Plan: Ran `arc lint --everything` in rPHU. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Maniphest Tasks: T5298 Differential Revision: https://secure.phabricator.com/D9434
This commit is contained in:
parent
bec13cfea8
commit
86eec5b44c
1 changed files with 2 additions and 2 deletions
|
@ -462,7 +462,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
|
|||
$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 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
|
|||
$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']}.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue