marcusgreen / moodle-tool_driprelease

Drip (automate) the availability of moodle course activities over time
3 stars 1 forks source link

Return Type Clarification #6

Open eduardokraus opened 4 weeks ago

eduardokraus commented 4 weeks ago

O tipo de retorno deve ser booleano ou array?

Captura de Tela 2024-10-24 às 12 17 40

marcusgreen commented 4 weeks ago

I have made a commit to change the return to []. There is some ambiguity in that the parent method expects a boolean value to be returned. I suspect that boolean was me responding to a "helpful" prompt from some tool as I have returned [] in validation in many other places. let me know what you think. Here is the commit. https://github.com/marcusgreen/moodle-tool_driprelease/commit/7bb7e8d9a432fb854ed0c78ff82445aad8e75fee