mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
Make optional options actually optional in cluster mailer config validation
This commit is contained in:
parent
d45952344b
commit
8de794d3c2
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,8 @@ final class PhabricatorClusterMailersConfigType
|
||||||
|
|
||||||
$options = idx($spec, 'options', array());
|
$options = idx($spec, 'options', array());
|
||||||
try {
|
try {
|
||||||
|
$defaults = $adapters[$type]->newDefaultOptions();
|
||||||
|
$options = $options + $defaults;
|
||||||
id(clone $adapters[$type])->setOptions($options);
|
id(clone $adapters[$type])->setOptions($options);
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
throw $this->newException(
|
throw $this->newException(
|
||||||
|
|
Loading…
Reference in a new issue