Skip to content

Commit 1800cc4

Browse files
committed
Merge branch '3.6.x' into 3.7.x
* 3.6.x: Run tests with MySQL 8.1 (doctrine#6118) Fix a typo and a space (doctrine#6119) PHPStan 1.10.26 (doctrine#6116) Fix self deprecation
2 parents 2f1e19e + 17d7baf commit 1800cc4

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ jobs:
378378
mysql-version:
379379
- "5.7"
380380
- "8.0"
381+
- "8.1"
381382
extension:
382383
- "mysqli"
383384
- "pdo_mysql"

UPGRADE.md

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

13301330
1. The `FetchMode` class and the `setFetchMode()` method of the `Connection` and `Statement` interfaces are removed.
13311331
2. The `Statement::fetch()` method is replaced with `fetchNumeric()`, `fetchAssociative()` and `fetchOne()`.
1332-
3. The `Statement::fetchAll()` method is replaced with `fetchAllNumeric()`, `fetchAllAssociative()` and `fechColumn()`.
1332+
3. The `Statement::fetchAll()` method is replaced with `fetchAllNumeric()`, `fetchAllAssociative()` and `fetchColumn()`.
13331333
4. The `Statement::fetchColumn()` method is replaced with `fetchOne()`.
13341334
5. The `Connection::fetchArray()` and `fetchAssoc()` methods are replaced with `fetchNumeric()` and `fetchAssociative()` respectively.
13351335
6. The `StatementIterator` class is removed. The usage of a `Statement` object as `Traversable` is no longer possible. Use `iterateNumeric()`, `iterateAssociative()` and `iterateColumn()` instead.
@@ -1393,7 +1393,7 @@ All implementations of the `VersionAwarePlatformDriver` interface have to implem
13931393
## BC BREAK: Removed `MsSQLKeywords` class
13941394

13951395
The `Doctrine\DBAL\Platforms\MsSQLKeywords` class has been removed.
1396-
Please use `Doctrine\DBAL\Platforms\SQLServerPlatform `instead.
1396+
Please use `Doctrine\DBAL\Platforms\SQLServerPlatform` instead.
13971397

13981398
## BC BREAK: Removed PDO DB2 driver
13991399

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"doctrine/coding-standard": "12.0.0",
4444
"fig/log-test": "^1",
4545
"jetbrains/phpstorm-stubs": "2023.1",
46-
"phpstan/phpstan": "1.10.21",
46+
"phpstan/phpstan": "1.10.26",
4747
"phpstan/phpstan-strict-rules": "^1.5",
4848
"phpunit/phpunit": "9.6.9",
4949
"psalm/plugin-phpunit": "0.18.4",

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,9 @@ parameters:
136136
message: '~^Strict comparison using === between array<int, array> and false will always evaluate to false\.$~'
137137
paths:
138138
- src/Driver/PgSQL/Result.php
139+
140+
# Ignore the possible false return value of db2_num_rows().
141+
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Connection\:\:exec\(\) should return int but returns int<0, max>\|false\.$~'
142+
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Result\:\:rowCount\(\) should return int but returns int<0, max>\|false\.$~'
139143
includes:
140144
- vendor/phpstan/phpstan-strict-rules/rules.neon

src/Schema/Column.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public function setCustomSchemaOptions(array $customSchemaOptions)
436436
*/
437437
public function getCustomSchemaOptions()
438438
{
439-
Deprecation::trigger(
439+
Deprecation::triggerIfCalledFromOutside(
440440
'doctrine/dbal',
441441
'https://github.com/doctrine/dbal/pull/5476',
442442
'Column::getCustomSchemaOptions() is deprecated. Use getPlatformOptions() instead.',

0 commit comments

Comments
 (0)