Without this fix, I'm getting the following error in PHP 8.1.18 in Moodle 4.1.2:
Fatal error: Declaration of logstore_trax\log\store::insert_event_entries(array $evententries) must be compatible with tool_log\helper\buffered_writer::insert_event_entries($evententries) in /var/www/html/admin/tool/log/store/trax/classes/log/store.php on line 73
Without this fix, I'm getting the following error in PHP 8.1.18 in Moodle 4.1.2:
I'm a bit confused why the error didn't occur in PHP 7.4.33 for me, but according to https://github.com/moodle/moodle/blob/9766906cc59de845e5006194187d592c62bffbe0/admin/tool/log/classes/helper/buffered_writer.php#L114 and https://github.com/moodle/moodle/blob/b71f01981a5940f9aabc297bc6f97a31d2bda370/admin/tool/log/classes/helper/buffered_writer.php#L114 the signature of
insert_event_entries
is without thearray
keyword.