-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cannot access private method #1866
Comments
This is weird.. I can't reproduce it (https://3v4l.org/ZHA87) and I don't really see why it would do this as the callback is only used within the context of StreamHandler /cc @corentin-cres |
I was able to replicate this UserFrosting by removing write permission to the log file, which resulted in a similar error message :
Using the example above (https://3v4l.org/ZHA87) on the same environment and on the same file (without write access) returned the proper output :
The difference is our app use a custom StreamWrapper. So the core PHP Note the actual process when
|
There we go. Both should return "Failed to open stream" : https://3v4l.org/LsBph |
Great, thanks for the investigative work there! I guess maybe using a closure instead would be better, otherwise public method with an internal phpdoc.. Anyway I'll look at this next week |
@lcharette can you please check using dev-main if this problem is fixed for you? |
I confirm problem is fixed with |
Great |
just in case anyone else from Userfrosting winds up here and is wondering which log file @lcharette is talking about above. -- That would be the |
Monolog version 3
The text was updated successfully, but these errors were encountered: