Guzzle lib needs updating to support PHP 8.0 and hgher.

Aperta
#222 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start with the three reported uses of each() in admin/tool/trigger/guzzle/GuzzleHttp/Promise/functions.php and the ${pluginname} and ${eventname} strings in admin/tool/trigger/edit.php. Check the surrounding code and run the relevant project checks for PHP compatibility. Done when those reported PHP deprecations and errors are addressed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

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

Lingua principale
PHP
Stelle
46
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di catalyst/moodle-tool_trigger

Tutte le issue di catalyst/moodle-tool_trigger

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.