]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix "array to string" conversion error.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 9 Jun 2014 18:32:23 +0000 (11:32 -0700)
committerepriestley <git@epriestley.com>
Mon, 9 Jun 2014 18:32:23 +0000 (11:32 -0700)
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

src/lint/linter/ArcanistXHPASTLinter.php

index ff3da80f87933c72239c93352378dcb36a6ec827..4337c6e2a86459fc00c78c3a234fe19660ea8448 100644 (file)
@@ -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']}.");
       }
     }