MyLogPHP
MyLogPHP copied to clipboard
PHP 8.1 deprecated warning
Warnings on $errorlevel and $value parameters in function log.
I solved it but not in the best way
line 77 replaced by
private function log($errorlevel = null , $value = null , $tag = null ) {
Then I added if( $value == null ) $value = ''; if( $errorlevel == null ) $errorlevel = 'INFO';
Thank you, @jcarval.
Is this project still being maintained?
@pmanolak
Is this project still being maintained?
Short answer: Yes
Long answer: It's complicated
I created this class to use in an older PHP version that is still active. Maintaining compatibility between that very old PHP and the 8+ versions is challenging because I made the mistake of pointing composer to the master branch. If I update to 8+, others who use older PHP versions (like me) could encounter compatibility issues.
If I put an up-to-date version of this library on another branch, the master branch will not contain the most up-to-date code.