diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5efbb92..e074155 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: services: postgres: - image: postgres:13 + image: postgres:14 env: POSTGRES_USER: 'postgres' POSTGRES_HOST_AUTH_METHOD: 'trust' @@ -43,17 +43,11 @@ jobs: - php: '8.2' moodle-branch: 'main' database: 'pgsql' - - php: '8.1' - moodle-branch: 'main' - database: 'mariadb' - - php: '8.1' - moodle-branch: 'main' - database: 'pgsql' - php: '8.3' - moodle-branch: 'MOODLE_404_STABLE' + moodle-branch: 'MOODLE_405_STABLE' database: 'mariadb' - php: '8.3' - moodle-branch: 'MOODLE_404_STABLE' + moodle-branch: 'MOODLE_405_STABLE' database: 'pgsql' - php: '8.3' moodle-branch: 'MOODLE_404_STABLE' @@ -61,10 +55,10 @@ jobs: - php: '8.3' moodle-branch: 'MOODLE_404_STABLE' database: 'pgsql' - - php: '8.1' + - php: '7.4' moodle-branch: 'MOODLE_401_STABLE' database: 'mariadb' - - php: '8.1' + - php: '7.4' moodle-branch: 'MOODLE_401_STABLE' database: 'pgsql' steps: diff --git a/classes/mapworker.php b/classes/mapworker.php index 2ee8f49..b2c5be5 100644 --- a/classes/mapworker.php +++ b/classes/mapworker.php @@ -72,7 +72,13 @@ class mapworker { * @param bool $edit Whether the mapworker should prepare the map for edit mode (false by default) * @param int $group Group id to use (default 0 means no group) */ - public function __construct(string $svgcode, array $placestore, \cm_info|null $cm = null, bool $edit = false, int $group = 0) { + public function __construct( + string $svgcode, + array $placestore, + \cm_info $cm = null, // phpcs:ignore + bool $edit = false, + int $group = 0 + ) { global $USER; $svgcode = preg_replace( '/(?!(<\!\[CDATA\[))(.*)<\/text>/',