Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Use of NullLogger when no logger is set #268

Merged
merged 1 commit into from
Feb 4, 2020
Merged

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Feb 2, 2020

With this small change, the property $logger is always set even if no logger is passed in the constructor.
The NullLogger has no effect, but its use avoid multiple variable checks.

@Spomky Spomky requested a review from scheb February 3, 2020 19:38
@scheb scheb merged commit 8297b24 into scheb:master Feb 4, 2020
@scheb
Copy link
Owner

scheb commented Feb 4, 2020

Looks good, less ifs is better :) Thanks!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants