diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 29902b4..fa6055e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false matrix: php: [ '8.2', '8.3', '8.4', '8.5' ] - mysql-version: [ '5.7', '8.0', '8.4', 'mariadb-10.6', 'mariadb-11.4' ] + mysql-version: [ '5.7', '8.0', '8.4', '9.0', 'mariadb-10.6', 'mariadb-11.4' ] steps: - name: Checkout diff --git a/src/MySQLReplication/Repository/MySQLRepository.php b/src/MySQLReplication/Repository/MySQLRepository.php index 02b3145..4287308 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'; }