diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e406cfc..0acb0f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,28 +10,29 @@ jobs: fail-fast: false matrix: include: - - php: '8.1' + - php: '8.3' moodle-branch: 'main' database: 'pgsql' - - php: '8.0' - moodle-branch: 'MOODLE_402_STABLE' + - php: '8.3' + moodle-branch: 'MOODLE_405_STABLE' database: 'mariadb' - - php: '8.0' - moodle-branch: 'MOODLE_401_STABLE' + - php: '8.2' + moodle-branch: 'MOODLE_404_STABLE' database: 'pgsql' - - php: '7.4' - moodle-branch: 'MOODLE_400_STABLE' - database: 'mariadb' services: postgres: - image: postgres:13 + image: postgres:14 env: POSTGRES_USER: 'postgres' POSTGRES_HOST_AUTH_METHOD: 'trust' + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 3 ports: - 5432:5432 - options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 mariadb: image: mariadb:10 diff --git a/lib.php b/lib.php index 0f93803..0a9f929 100644 --- a/lib.php +++ b/lib.php @@ -65,13 +65,7 @@ public function supports_repositories() { return false; } - /** - * Use this editor for given element. - * - * @param string $elementid - * @param array $options - * @param null $fpoptions - */ + #[\Override] public function use_editor($elementid, ?array $options = null, $fpoptions = null) { global $PAGE, $OUTPUT; diff --git a/readme.md b/readme.md index b18bb69..883f9bb 100644 --- a/readme.md +++ b/readme.md @@ -39,8 +39,7 @@ and keeping the results HTML as clean as possible. * Prevent nesting of superscript and subscript tags * No text wrapping is allowed along with no paragraphs. Everything is on one line * Configurable height and width of editor -* Provide a standalone version of the same editor for offline situations such as e-readers -* Editor can placed where required including inline with text +* Editor can be placed where required including inline with text ## Alignment