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

Merge branch 'bugfix/backward-compatibility' into 'master'

bugfix(compatibility): backward compatibility

See merge request !31
parents 82c10f0f 27286b12
Branches master
Tags 1.13.2
1 merge request!31bugfix(compatibility): backward compatibility
Pipeline #403840 passed with warnings with stages
in 49 seconds
## [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
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment