[docs] Error in version.php
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 50/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- php
- Ambito
- documentation
Direzione di ricerca
Apri la sezione «supported-versions» all’indirizzo https://moodledev.io/docs/apis/commonfiles/version.php#supported-versions e individua la relativa origine nel repository devdocs. Aggiorna la spiegazione e gli esempi per indicare che $plugin->supported deve contenere esattamente due valori e chiarisci il comportamento quando ne contiene uno o più di due.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What is the URL of the page?
https://moodledev.io/docs/apis/commonfiles/version.php#supported-versions
What is the issue with this page?
The docs stated, that the property for $plugin->supported should be integer[] and
A set of branch numbers to specify the lowest and highest branches of Moodle that the plugin supports. These value are inclusive.
But it does not state that there has to be exactly two values. If you provide 3 or more values, only the first 2 values (or more correctly: only values with the keys 0 and 1) will taken into account. One could think that you can also provide a list of all supported versions:
$plugin->supported = [
// Support from the Moodle 3.11 series.
311,
401,
402,
// To the Moodle 4.3 series.
403,
];
If one provides only one value Moodle will fail with an error while installation of the plugin.
$plugin->supported = [
// Support only the Moodle 4.3 series.
403,
];
Are you able to provide a patch for this?
Yes - I will create one if requested.
- Lingua principale
- TypeScript
- Stelle
- 74
- Fork
- 652
- Merge medio
- 2g 50m
- PR unite (30g)
- 12
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di moodle/devdocs
-
bug documentation help wanted needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
documentation enhancement help wanted needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug documentation help wanted needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
-
bug documentation good first issue needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
-
bug documentation help wanted needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
Tutte le issue di moodle/devdocs
Issue simili
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100