[docs] Error in version.php #787
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
help wanted
Extra attention is needed
needs-triage
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 beinteger[]
andBut 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
and1
) will taken into account. One could think that you can also provide a list of all supported versions:If one provides only one value Moodle will fail with an error while installation of the plugin.
Are you able to provide a patch for this?
Yes - I will create one if requested.
The text was updated successfully, but these errors were encountered: