EventsLogger method incompatible with interface
-
Hi there!
Sessions 3.1.1 with PHP 8.1.12-Win32 in a local dev environment throws PHP errors in the PHP error log, nothing on screen.
Errors Reported (timestamps removed)
PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in \wp-content\plugins\sessions\includes\libraries\decalog-sdk\EventsLogger.php on line 76PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0Taking a look with VSCode finds several problem in \sessions\includes\libraries\decalog-sdk\EventsLogger.php the first being at line 76 as reported above. Here is line 76.
76: public function emergency( string|\Stringable $message, array $context = [] ): void {of which the error in VSCode is –
Method 'DecaLog\EventsLogger::emergency()' is not compatible with method Psr\Log\LoggerInterface::emergency()'.Multiple such error messages are found and can be seen in this screen capture of the EventsLogger.php at: https://ibb.co/6JpybBrz (expires after 3 months, from Feb 03 2025)
Plugin options logging, device detection and IP Information are not enabled.
Hoping this is useful 🙂
Best from Hong Kong – Duncan.
The topic ‘EventsLogger method incompatible with interface’ is closed to new replies.