Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79383

Improve repository plugin class parameter type declaration

      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

            individual-it Artur Neumann
            individual-it Artur Neumann
            Luca Bösch Luca Bösch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 minutes
                6m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.