MyLogPHP icon indicating copy to clipboard operation
MyLogPHP copied to clipboard

PHP 8.1 deprecated warning

Open jcarval opened this issue 1 year ago • 3 comments

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';

jcarval avatar Oct 17 '23 09:10 jcarval

Thank you, @jcarval.

llagerlof avatar Oct 18 '23 12:10 llagerlof

Is this project still being maintained?

pmanolak avatar Aug 28 '24 20:08 pmanolak

@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.

llagerlof avatar Aug 29 '24 03:08 llagerlof