mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 05:50:54 +01:00
Lint for PHP 5.3 on Windows
Test Plan: Linted `FileFinder`. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5972
This commit is contained in:
parent
a45ef76a8f
commit
a1c0ba785d
1 changed files with 3 additions and 3 deletions
|
@ -439,12 +439,12 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
|
|||
"of `{$name}()` was not introduced until PHP {$version}.");
|
||||
}
|
||||
}
|
||||
} else if ($windows_version !== null) {
|
||||
} else if (version_compare($windows_version, '5.3.0') > 0) {
|
||||
$this->raiseLintAtNode(
|
||||
$node,
|
||||
self::LINT_PHP_53_FEATURES,
|
||||
"This codebase targets PHP 5.2.3, but `{$name}()` is not available ".
|
||||
"on Windows".
|
||||
"This codebase targets PHP 5.3.0 on Windows, but `{$name}()` is not ".
|
||||
"available there.".
|
||||
($windows_version ? " until PHP {$windows_version}" : "").".");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue