diff --git a/CHANGELOG.md b/CHANGELOG.md index d0a14f6e848a00e38a910513f305197ff989aadc..50e3e70e724487ab407af980a58fd95c81db4b29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.13.2] - 2024-08-13 +### Fixed +- backward compatibility, when second parameter in `SimpleLoggerFactory` constructor is null + ## [1.13.1] - 2024-08-13 ### Fixed - removed redundant semicolon in `SimpleLoggerFactory` class diff --git a/src/SimpleLoggerFactory.php b/src/SimpleLoggerFactory.php index 61267edaf975e7a72dfa21afbfeb26cd8df74b25..eeb7e3a11e09c0461c3c35b1167e1df104528af1 100644 --- a/src/SimpleLoggerFactory.php +++ b/src/SimpleLoggerFactory.php @@ -35,6 +35,7 @@ final class SimpleLoggerFactory implements LoggerFactory { */ public function __construct( string $channel, $options = null ) { $this->channel = $channel; + $options = $options ?? new Settings(); if ( $options instanceof Settings ) { $options = $options->to_array();