Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401381
D11714.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11714.id.diff
View Options
diff --git a/src/lint/linter/ArcanistExternalLinter.php b/src/lint/linter/ArcanistExternalLinter.php
--- a/src/lint/linter/ArcanistExternalLinter.php
+++ b/src/lint/linter/ArcanistExternalLinter.php
@@ -141,8 +141,8 @@
* @return this
* @task bin
*/
- final public function setFlags($flags) {
- $this->flags = (array)$flags;
+ final public function setFlags(array $flags) {
+ $this->flags = $flags;
return $this;
}
@@ -337,21 +337,9 @@
* @task exec
*/
final protected function getCommandFlags() {
- $mandatory_flags = $this->getMandatoryFlags();
- if (!is_array($mandatory_flags)) {
- phutil_deprecated(
- 'String support for flags.', 'You should use list<string> instead.');
- $mandatory_flags = (array) $mandatory_flags;
- }
-
- $flags = nonempty($this->flags, $this->getDefaultFlags());
- if (!is_array($flags)) {
- phutil_deprecated(
- 'String support for flags.', 'You should use list<string> instead.');
- $flags = (array) $flags;
- }
-
- return array_merge($mandatory_flags, $flags);
+ return array_merge(
+ $this->getMandatoryFlags(),
+ nonempty($this->flags, $this->getDefaultFlags()));
}
public function getCacheVersion() {
@@ -508,12 +496,6 @@
throw new Exception(
pht('None of the configured binaries can be located.'));
case 'flags':
- if (!is_array($value)) {
- phutil_deprecated(
- 'String support for flags.',
- 'You should use list<string> instead.');
- $value = (array) $value;
- }
$this->setFlags($value);
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 5:22 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7705226
Default Alt Text
D11714.id.diff (1 KB)
Attached To
Mode
D11714: Remove deprecated support for specifying flags as a string
Attached
Detach File
Event Timeline
Log In to Comment