From 769919925342fdb66498a527264202ecdc91aa3e Mon Sep 17 00:00:00 2001 From: Denis Zunke Date: Wed, 18 Feb 2026 10:22:45 +0100 Subject: [PATCH] Support MySQL 9.0 in CI --- .github/workflows/tests.yml | 2 +- src/MySQLReplication/Repository/MySQLRepository.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a29ae61..d83f74d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: php: [ '8.2', '8.3', '8.4' ] - mysql-version: [ '5.7', '8.0', '8.4' ] + mysql-version: [ '5.7', '8.0', '8.4', '9.0' ] steps: - name: Checkout diff --git a/src/MySQLReplication/Repository/MySQLRepository.php b/src/MySQLReplication/Repository/MySQLRepository.php index b38c994..7651134 100644 --- a/src/MySQLReplication/Repository/MySQLRepository.php +++ b/src/MySQLReplication/Repository/MySQLRepository.php @@ -67,7 +67,7 @@ public function getMasterStatus(): MasterStatusDTO { $query = 'SHOW MASTER STATUS'; - if (str_starts_with($this->getVersion(), '8.4')) { + if (version_compare($this->getVersion(), '8.4.0') >= 0) { $query = 'SHOW BINARY LOG STATUS'; }