From 86eec5b44c71e256eb171bff6ab34c854cddb8b4 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Mon, 9 Jun 2014 11:32:23 -0700 Subject: [PATCH] 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 --- src/lint/linter/ArcanistXHPASTLinter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php index ff3da80f..4337c6e2 100644 --- a/src/lint/linter/ArcanistXHPASTLinter.php +++ b/src/lint/linter/ArcanistXHPASTLinter.php @@ -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']}."); } } -- 2.43.0