From 7ceb7e48764ce2b928e3ced0c8aa25887b4ee300 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 6 Oct 2023 14:37:31 +0900 Subject: [PATCH] refactor: run rector again --- tests/system/Database/Live/ForgeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system/Database/Live/ForgeTest.php b/tests/system/Database/Live/ForgeTest.php index 626660ee7246..c96cc62154bb 100644 --- a/tests/system/Database/Live/ForgeTest.php +++ b/tests/system/Database/Live/ForgeTest.php @@ -941,7 +941,7 @@ public function testAddFields(): void ], ]; - if (version_compare($this->db->getVersion(), '8.0.17', '>=') && strpos($this->db->getVersion(), 'MariaDB') === false) { + if (version_compare($this->db->getVersion(), '8.0.17', '>=') && ! str_contains($this->db->getVersion(), 'MariaDB')) { // As of MySQL 8.0.17, the display width attribute for integer data types // is deprecated and is not reported back anymore. // @see https://dev.mysql.com/doc/refman/8.0/en/numeric-type-attributes.html