-
Notifications
You must be signed in to change notification settings - Fork 322
Update log.class.php #3058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update log.class.php #3058
Conversation
|
Pourquoi ces "aller-retours" sur cette signature ? |
|
Car le changement était pour rendre la declaration identique a PSR mais qui en fonction des versions de PHP change ce qui pose soucis. Et malheureusement non on peut pas etre independant de PSR car certain plugin s'appuient dessus |
|
Ok, il me semblait que dans la version 1.1.4 de psr/log il y avait bien le public function log($level, $message, array $context = array());sans le |
|
Effective le void n'est pas utile non plus je viens de le retirer |
|
PSR-3 : pour message, a string or an object implementing __toString() Every method accepts a string as the message, or an object with a __toString() method. Implementors MAY have special handling for the passed objects. If that is not the case, implementors MUST cast it to a string Il serait donc judicieux pour encore plus de fiabilité et prévenir d'erreur, de caster le $message : public function log($level, $message, array $context = array()): { |
|
Je propose de merger en l'état afin de corriger le problème rapidement et de faire une autre pr pour améliorer l'implèm. |
Fix https://community.jeedom.com/t/cannot-install-jeedom-cancelling/140475/2
Description
Suggested changelog entry
Related issues/external references
Fixes #
Types of changes
PR checklist