moodle-tool_trigger icon indicating copy to clipboard operation
moodle-tool_trigger copied to clipboard

Guzzle lib needs updating to support PHP 8.0 and hgher.

Open rikardow opened this issue 7 months ago • 1 comments

Hi, thanks for the great work on this plugin

We found some errors and deprecations in the codebase, here's the list

  1. File: admin/tool/trigger/guzzle/GuzzleHttp/Promise/functions.php
    Line: 222
    Message: Function each() is deprecated since PHP 7.2 and removed since PHP 8.0; Use a foreach loop or ArrayIterator instead
    Type: error

  2. File: admin/tool/trigger/guzzle/GuzzleHttp/Promise/functions.php
    Line: 257
    Message: Function each() is deprecated since PHP 7.2 and removed since PHP 8.0; Use a foreach loop or ArrayIterator instead
    Type: error

  3. File: admin/tool/trigger/guzzle/GuzzleHttp/Promise/functions.php
    Line: 313
    Message: Function each() is deprecated since PHP 7.2 and removed since PHP 8.0; Use a foreach loop or ArrayIterator instead
    Type: error

  4. File: admin/tool/trigger/edit.php
    Line: 74
    Message: Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${pluginname}
    Type: warning

  5. File: admin/tool/trigger/edit.php
    Line: 74
    Message: Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${eventname}
    Type: warning

Thank you very much for your efforts

rikardow avatar Jul 09 '24 13:07 rikardow