Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-5972

Require type hints and return type declarations

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: Coding style
    • Labels:
      None

      Description

      These are available in all supported versions of PHP and we typically use them.

      This issue is about formalising the requirement of their use in all possible locations for all new code.

      To be clear, there will be necessary exclusions:

      1. code extending existing non-compliant code and implementing things where it is not available
      2. ... Hmm... maybe others too?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: