-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.2.2
-
MOODLE_402_STABLE
-
MDL-79383-parameter_type_for_get_listing_master
-
Easy
-
-
I'm currently working on a new repository plugin and I would like to use parameter type declarations, but when I create a function like
public function get_listing(string $path = '', string $page = '')
The IDE complains that
Declaration must be compatible with repository->get_listing([path: string = ''], [page: string = ''])
So I suggest to change the definition of the functions, so that they contain the parameter type