diff --git a/.github/workflows/moodle-plugin-ci.yml b/.github/workflows/moodle-plugin-ci.yml index e146c5d..34c0ceb 100644 --- a/.github/workflows/moodle-plugin-ci.yml +++ b/.github/workflows/moodle-plugin-ci.yml @@ -30,104 +30,160 @@ jobs: fail-fast: false matrix: include: + - php: 8.3 + moodle-branch: MOODLE_404_STABLE + database: pgsql + plugin-ci: ^4 + - php: 8.3 + moodle-branch: MOODLE_404_STABLE + database: mariadb + plugin-ci: ^4 + - php: 8.2 + moodle-branch: MOODLE_404_STABLE + database: pgsql + plugin-ci: ^4 + - php: 8.2 + moodle-branch: MOODLE_404_STABLE + database: mariadb + plugin-ci: ^4 + - php: 8.1 + moodle-branch: MOODLE_404_STABLE + database: pgsql + plugin-ci: ^4 + - php: 8.1 + moodle-branch: MOODLE_404_STABLE + database: mariadb + plugin-ci: ^4 - php: 8.2 moodle-branch: MOODLE_403_STABLE database: pgsql + plugin-ci: ^4 - php: 8.2 moodle-branch: MOODLE_403_STABLE database: mariadb + plugin-ci: ^4 - php: 8.1 moodle-branch: MOODLE_403_STABLE database: pgsql + plugin-ci: ^4 - php: 8.1 moodle-branch: MOODLE_403_STABLE database: mariadb + plugin-ci: ^4 - php: 8.0 moodle-branch: MOODLE_403_STABLE database: pgsql + plugin-ci: ^4 - php: 8.0 moodle-branch: MOODLE_403_STABLE database: mariadb + plugin-ci: ^4 - php: 8.2 moodle-branch: MOODLE_402_STABLE database: pgsql + plugin-ci: ^4 - php: 8.2 moodle-branch: MOODLE_402_STABLE database: mariadb + plugin-ci: ^4 - php: 8.1 moodle-branch: MOODLE_402_STABLE database: pgsql + plugin-ci: ^4 - php: 8.1 moodle-branch: MOODLE_402_STABLE database: mariadb + plugin-ci: ^4 - php: 8.0 moodle-branch: MOODLE_402_STABLE database: pgsql + plugin-ci: ^4 - php: 8.0 moodle-branch: MOODLE_402_STABLE database: mariadb + plugin-ci: ^4 - php: 8.1 moodle-branch: MOODLE_401_STABLE database: pgsql + plugin-ci: ^4 - php: 8.1 moodle-branch: MOODLE_401_STABLE database: mariadb + plugin-ci: ^4 - php: 8.0 moodle-branch: MOODLE_401_STABLE database: pgsql + plugin-ci: ^4 - php: 8.0 moodle-branch: MOODLE_401_STABLE database: mariadb + plugin-ci: ^4 - php: 7.4 moodle-branch: MOODLE_401_STABLE database: pgsql + plugin-ci: ^4 - php: 7.4 moodle-branch: MOODLE_401_STABLE database: mariadb + plugin-ci: ^4 - php: 8.0 moodle-branch: MOODLE_400_STABLE database: pgsql + plugin-ci: ^4 - php: 8.0 moodle-branch: MOODLE_400_STABLE database: mariadb + plugin-ci: ^4 - php: 7.4 moodle-branch: MOODLE_400_STABLE database: pgsql + plugin-ci: ^4 - php: 7.4 moodle-branch: MOODLE_400_STABLE database: mariadb + plugin-ci: ^4 - php: 7.4 moodle-branch: MOODLE_311_STABLE database: pgsql + plugin-ci: ^4 - php: 7.4 moodle-branch: MOODLE_311_STABLE database: mariadb + plugin-ci: ^4 - php: 7.4 moodle-branch: MOODLE_39_STABLE database: pgsql + plugin-ci: ^4 - php: 7.4 moodle-branch: MOODLE_39_STABLE database: mariadb + plugin-ci: ^4 - php: 7.3 moodle-branch: MOODLE_311_STABLE database: pgsql + plugin-ci: ^3 - php: 7.3 moodle-branch: MOODLE_311_STABLE database: mariadb + plugin-ci: ^3 - php: 7.3 moodle-branch: MOODLE_39_STABLE database: pgsql + plugin-ci: ^3 - php: 7.3 moodle-branch: MOODLE_39_STABLE database: mariadb + plugin-ci: ^3 - php: 7.2 moodle-branch: MOODLE_39_STABLE database: pgsql + plugin-ci: ^3 - php: 7.2 moodle-branch: MOODLE_39_STABLE database: mariadb + plugin-ci: ^3 steps: - name: Check out repository code @@ -145,7 +201,7 @@ jobs: - name: Initialise moodle-plugin-ci run: | - composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3 + composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ${{ matrix.plugin-ci }} echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH sudo locale-gen en_AU.UTF-8 @@ -163,11 +219,6 @@ jobs: if: ${{ always() }} run: moodle-plugin-ci phplint - - name: PHP Copy/Paste Detector - continue-on-error: true # This step will show errors but will not fail - if: ${{ always() }} - run: moodle-plugin-ci phpcpd - - name: PHP Mess Detector continue-on-error: true # This step will show errors but will not fail if: ${{ always() }} diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php index 7e9e7c3..386a9ef 100644 --- a/classes/privacy/provider.php +++ b/classes/privacy/provider.php @@ -39,7 +39,7 @@ class provider implements \core_privacy\local\metadata\null_provider { * * @return string */ - public static function get_reason() : string { + public static function get_reason(): string { return 'privacy:metadata'; } }