We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 129962e + 0d37402 commit c457713Copy full SHA for c457713
src/ValueFormatters/ValueFormatterBase.php
@@ -22,10 +22,10 @@ abstract class ValueFormatterBase implements ValueFormatter {
22
/**
23
* @since 0.1
24
*
25
- * @param FormatterOptions $options
+ * @param FormatterOptions|null $options
26
*/
27
- public function __construct( FormatterOptions $options ) {
28
- $this->options = $options;
+ public function __construct( FormatterOptions $options = null ) {
+ $this->options = $options ?: new FormatterOptions();
29
30
$this->options->defaultOption( ValueFormatter::OPT_LANG, 'en' );
31
}
0 commit comments