Skip to content

Commit 6b76e92

Browse files
committed
Merge branch '3.7.x' into 4.0.x
* 3.7.x: Run tests with MySQL 8.1 (doctrine#6118) Sync MariaDB support strategy with upstream (doctrine#6110) Fix a typo and a space (doctrine#6119) PHPStan 1.10.26 (doctrine#6116) Fix self deprecation Pin Slevomat Coding Standard
2 parents c97a3e6 + 1800cc4 commit 6b76e92

File tree

7 files changed

+28
-11
lines changed

7 files changed

+28
-11
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,20 +277,23 @@ jobs:
277277
php-version:
278278
- "8.1"
279279
mariadb-version:
280-
- "10.2"
281-
- "10.5"
282-
- "10.7"
283-
- "10.9"
284-
- "10.11"
280+
- "10.2" # Oldest version supported by DBAL
281+
- "10.4" # LTS (Jun 2024)
282+
- "10.5" # LTS (Jun 2025)
283+
- "10.6" # LTS (Jul 2026)
284+
- "10.9" # STS (Aug 2023)
285+
- "10.10" # STS (Nov 2023)
286+
- "10.11" # LTS (Feb 2028)
287+
- "11.0" # STS (Jun 2024)
285288
extension:
286289
- "mysqli"
287290
- "pdo_mysql"
288291
include:
289292
- php-version: "8.2"
290-
mariadb-version: "10.11"
293+
mariadb-version: "11.0"
291294
extension: "mysqli"
292295
- php-version: "8.3"
293-
mariadb-version: "10.11"
296+
mariadb-version: "11.0"
294297
extension: "pdo_mysql"
295298

296299
services:
@@ -301,7 +304,7 @@ jobs:
301304
MYSQL_DATABASE: "doctrine_tests"
302305

303306
options: >-
304-
--health-cmd "mysqladmin ping --silent"
307+
--health-cmd "mariadb-admin ping --silent || mysqladmin ping --silent"
305308
306309
ports:
307310
- "3306:3306"
@@ -346,6 +349,7 @@ jobs:
346349
mysql-version:
347350
- "5.7"
348351
- "8.0"
352+
- "8.1"
349353
extension:
350354
- "mysqli"
351355
- "pdo_mysql"

UPGRADE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2217,7 +2217,7 @@ Additional related changes:
22172217

22182218
1. The `FetchMode` class and the `setFetchMode()` method of the `Connection` and `Statement` interfaces are removed.
22192219
2. The `Statement::fetch()` method is replaced with `fetchNumeric()`, `fetchAssociative()` and `fetchOne()`.
2220-
3. The `Statement::fetchAll()` method is replaced with `fetchAllNumeric()`, `fetchAllAssociative()` and `fechColumn()`.
2220+
3. The `Statement::fetchAll()` method is replaced with `fetchAllNumeric()`, `fetchAllAssociative()` and `fetchColumn()`.
22212221
4. The `Statement::fetchColumn()` method is replaced with `fetchOne()`.
22222222
5. The `Connection::fetchArray()` and `fetchAssoc()` methods are replaced with `fetchNumeric()` and `fetchAssociative()` respectively.
22232223
6. The `StatementIterator` class is removed. The usage of a `Statement` object as `Traversable` is no longer possible. Use `iterateNumeric()`, `iterateAssociative()` and `iterateColumn()` instead.
@@ -2281,7 +2281,7 @@ All implementations of the `VersionAwarePlatformDriver` interface have to implem
22812281
## BC BREAK: Removed `MsSQLKeywords` class
22822282

22832283
The `Doctrine\DBAL\Platforms\MsSQLKeywords` class has been removed.
2284-
Please use `Doctrine\DBAL\Platforms\SQLServerPlatform `instead.
2284+
Please use `Doctrine\DBAL\Platforms\SQLServerPlatform` instead.
22852285

22862286
## BC BREAK: Removed PDO DB2 driver
22872287

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@
4141
"doctrine/coding-standard": "12.0.0",
4242
"fig/log-test": "^1",
4343
"jetbrains/phpstorm-stubs": "dev-master#b51c647ece0a88c59fbc94028daebd047377bcdb",
44-
"phpstan/phpstan": "1.10.21",
44+
"phpstan/phpstan": "1.10.26",
4545
"phpstan/phpstan-phpunit": "1.3.13",
4646
"phpstan/phpstan-strict-rules": "^1.5",
4747
"phpunit/phpunit": "10.2.2",
4848
"psalm/plugin-phpunit": "0.18.4",
49+
"slevomat/coding-standard": "8.13.1",
4950
"squizlabs/php_codesniffer": "3.7.2",
5051
"symfony/cache": "^5.4|^6.0",
5152
"symfony/console": "^4.4.30|^5.4|^6.0",

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ parameters:
9797
- src/Driver/IBMDB2/Connection.php
9898
- src/Driver/IBMDB2/Result.php
9999

100+
# Ignore the possible false return value of db2_num_rows().
101+
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Connection\:\:exec\(\) should return int but returns int<0, max>\|false\.$~'
102+
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Result\:\:rowCount\(\) should return int but returns int<0, max>\|false\.$~'
100103
includes:
101104
- vendor/phpstan/phpstan-phpunit/extension.neon
102105
- vendor/phpstan/phpstan-phpunit/rules.neon

psalm.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
<file name="src/Driver/OCI8/ConvertPositionalToNamedPlaceholders.php"/>
4343
</errorLevel>
4444
</ConflictingReferenceConstraint>
45+
<DeprecatedClass>
46+
<errorLevel type="suppress">
47+
<referencedClass name="Doctrine\DBAL\Platforms\MariaDB1043Platform"/>
48+
</errorLevel>
49+
</DeprecatedClass>
4550
<DeprecatedMethod>
4651
<errorLevel type="suppress">
4752
<!-- TODO for PHPUnit 10 -->

src/Platforms/MariaDB1043Platform.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*
1212
* Extend deprecated MariaDb1027Platform to ensure correct functions used in MySQLSchemaManager which
1313
* tests for MariaDb1027Platform not MariaDBPlatform.
14+
*
15+
* @deprecated This class will be merged with {@see MariaDBPlatform} in 4.0 because support for MariaDB
16+
* releases prior to 10.4.3 will be dropped.
1417
*/
1518
class MariaDB1043Platform extends MariaDBPlatform
1619
{

tests/Driver/VersionAwarePlatformDriverTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static function mySQLVersionProvider(): array
3939
['10.2.8-MariaDB-10.2.8+maria~xenial-log', MariaDBPlatform::class],
4040
['10.2.8-MariaDB-1~lenny-log', MariaDBPlatform::class],
4141
['10.5.2-MariaDB-1~lenny-log', MariaDB1052Platform::class],
42+
['11.0.2-MariaDB-1:11.0.2+maria~ubu2204', MariaDB1052Platform::class],
4243
];
4344
}
4445

0 commit comments

Comments
 (0)