Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15283709
D9434.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
925 B
Referenced Files
None
Subscribers
None
D9434.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9434: Fix "array to string" conversion error.
Attached
Detach File
Event Timeline
Log In to Comment