mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-25 22:18:19 +01:00
Set hard-coded defaults for list<string>
values to array()
Summary: These should default to array() so they're safe to `foreach` over. Test Plan: Grepped for 'list<string>'. Reviewers: codeblock, btrahan, starruler, vrana Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D4600
This commit is contained in:
parent
7e17acfb68
commit
c95dcab439
3 changed files with 6 additions and 6 deletions
|
@ -72,7 +72,7 @@ final class PhabricatorCoreConfigOptions
|
||||||
"and a call to 'Leap Into Action'. If you'd prefer more ".
|
"and a call to 'Leap Into Action'. If you'd prefer more ".
|
||||||
"traditional UI strings like 'Submit', you can set this flag to ".
|
"traditional UI strings like 'Submit', you can set this flag to ".
|
||||||
"disable most of the jokes and easter eggs.")),
|
"disable most of the jokes and easter eggs.")),
|
||||||
$this->newOption('environment.append-paths', 'list<string>', null)
|
$this->newOption('environment.append-paths', 'list<string>', array())
|
||||||
->setSummary(
|
->setSummary(
|
||||||
pht("These paths get appended to your \$PATH envrionment variable."))
|
pht("These paths get appended to your \$PATH envrionment variable."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
|
|
@ -13,11 +13,11 @@ final class PhabricatorExtendingPhabricatorConfigOptions
|
||||||
|
|
||||||
public function getOptions() {
|
public function getOptions() {
|
||||||
return array(
|
return array(
|
||||||
$this->newOption('load-libraries', 'list<string>', null)
|
$this->newOption('load-libraries', 'list<string>', array())
|
||||||
->setLocked(true)
|
->setLocked(true)
|
||||||
->setSummary(pht("Paths to additional phutil libraries to load."))
|
->setSummary(pht("Paths to additional phutil libraries to load."))
|
||||||
->addExample('/srv/our-libs/sekrit-phutil', pht('Valid Setting')),
|
->addExample('/srv/our-libs/sekrit-phutil', pht('Valid Setting')),
|
||||||
$this->newOption('events.listeners', 'list<string>', null)
|
$this->newOption('events.listeners', 'list<string>', array())
|
||||||
->setLocked(true)
|
->setLocked(true)
|
||||||
->setSummary(
|
->setSummary(
|
||||||
pht("Listeners receive callbacks when interesting things occur."))
|
pht("Listeners receive callbacks when interesting things occur."))
|
||||||
|
|
|
@ -22,7 +22,7 @@ final class PhabricatorDifferentialConfigOptions
|
||||||
$this->newOption(
|
$this->newOption(
|
||||||
'differential.custom-remarkup-rules',
|
'differential.custom-remarkup-rules',
|
||||||
'list<string>',
|
'list<string>',
|
||||||
null)
|
array())
|
||||||
->setSummary(pht('Custom remarkup rules.'))
|
->setSummary(pht('Custom remarkup rules.'))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -31,7 +31,7 @@ final class PhabricatorDifferentialConfigOptions
|
||||||
$this->newOption(
|
$this->newOption(
|
||||||
'differential.custom-remarkup-block-rules',
|
'differential.custom-remarkup-block-rules',
|
||||||
'list<string>',
|
'list<string>',
|
||||||
null)
|
array())
|
||||||
->setSummary(pht('Custom remarkup block rules.'))
|
->setSummary(pht('Custom remarkup block rules.'))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -146,7 +146,7 @@ final class PhabricatorDifferentialConfigOptions
|
||||||
"revision. If this option is false, Differential defaults to the ".
|
"revision. If this option is false, Differential defaults to the ".
|
||||||
"best it can, something like 'George Washington' or ".
|
"best it can, something like 'George Washington' or ".
|
||||||
"'gwashington'.")),
|
"'gwashington'.")),
|
||||||
$this->newOption('differential.generated-paths', 'list<string>', null)
|
$this->newOption('differential.generated-paths', 'list<string>', array())
|
||||||
->setSummary(pht("File regexps to treat as automatically generated."))
|
->setSummary(pht("File regexps to treat as automatically generated."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
|
Loading…
Add table
Reference in a new issue