File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/internal/Magento/Framework/DB/Adapter Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \Framework \DB \Adapter ;
9
9
10
10
use Magento \Framework \App \ResourceConnection ;
11
+ use Magento \Tests \NamingConvention \true \bool ;
11
12
12
13
/**
13
14
* Class GetDbVersion provides sql engine version requesting version variable
@@ -126,15 +127,15 @@ private function fetchSqlVersion(string $resource): string
126
127
/**
127
128
* Check if MySQL version is greater than equal to 8.0.29
128
129
*
129
- * @return void
130
+ * @return bool
130
131
* @throws ConnectionException
131
132
*/
132
- public function isMysqlGte8029 ()
133
+ public function isMysqlGte8029 (): bool
133
134
{
134
135
$ sqlVersion = $ this ->getSqlVersion ();
135
136
$ isMariaDB = str_contains ($ sqlVersion , SqlVersionProvider::MARIA_DB_10_VERSION );
136
137
$ sqlExactVersion = $ this ->fetchSqlVersion (ResourceConnection::DEFAULT_CONNECTION );
137
- if (!$ isMariaDB && version_compare ($ sqlExactVersion , " 8.0.29 " , " >= " )) {
138
+ if (!$ isMariaDB && version_compare ($ sqlExactVersion , ' 8.0.29 ' , ' >= ' )) {
138
139
return true ;
139
140
}
140
141
return false ;
You can’t perform that action at this time.
0 commit comments