Closed unreal4u closed 6 years ago
SplFileObjectLogger
has the same error. We will get this fixed in the next release. We will use a slightly different solution though, by putting a use Exception;
at the top.
Great catch, I didn't look at other places 👍
I've found another missing use
clause in SplFileObjectLogger
. That too will be fixed, with unit tests in place to ensure it actually works.
Version 5.11.1 has just been released which fixes this issue in both logger implementations.
Closing this request as the issue has been fixed in a different way in the latest release.
When testing in strict mode in PHP 7.1.10 and enabling logging as per the documentation, a fatal error occurs when injecting a Logger.
Given the following code:
It will throw the following error:
This commit fixes the issue.