catalyst / moodle-tool_lockstats

Moodle cron / task API lock statistics admin tool
https://moodle.org/plugins/tool_lockstats
6 stars 13 forks source link

Deprecations findings #121

Open rikardow opened 3 months ago

rikardow commented 3 months ago

Hi, thanks for the great work on this plugin

We found a couple of deprecations in the codebase, here's the list

  1. File: admin/tool/lockstats/classes/proxy_lock_factory.php
    Line: 262
    Message: Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter \$resourcekey\" was usedand possibly changed (by reference)on line 240."
    Type: warning

  2. File: admin/tool/lockstats/tests/proxy_lock_test.php
    Line: 48
    Message: Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${dbtype}
    Type: warning

Thank you very much for your efforts