Skip to content
Snippets Groups Projects
Commit 27286b12 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

bugfix(compatibility): backward compatibility

parent 275a791a
No related branches found
No related tags found
1 merge request!31bugfix(compatibility): backward compatibility
Pipeline #403838 passed with warnings
## [1.13.2] - 2024-08-13
### Fixed
- backward compatibility, when second parameter in `SimpleLoggerFactory` constructor is null
## [1.13.1] - 2024-08-13 ## [1.13.1] - 2024-08-13
### Fixed ### Fixed
- removed redundant semicolon in `SimpleLoggerFactory` class - removed redundant semicolon in `SimpleLoggerFactory` class
......
...@@ -35,6 +35,7 @@ final class SimpleLoggerFactory implements LoggerFactory { ...@@ -35,6 +35,7 @@ final class SimpleLoggerFactory implements LoggerFactory {
*/ */
public function __construct( string $channel, $options = null ) { public function __construct( string $channel, $options = null ) {
$this->channel = $channel; $this->channel = $channel;
$options = $options ?? new Settings();
if ( $options instanceof Settings ) { if ( $options instanceof Settings ) {
$options = $options->to_array(); $options = $options->to_array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment