Skip to content

Commit 90f53e9

Browse files
Merge pull request #2221 from nextcloud/dependabot/composer/stable31/doctrine/dbal-3.10.4
[stable31] build(deps): bump doctrine/dbal from 3.10.2 to 3.10.4
2 parents af3dcd3 + 435ae82 commit 90f53e9

File tree

17 files changed

+77
-57
lines changed

17 files changed

+77
-57
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"cweagans/composer-patches": "^1.7",
2424
"deepdiver/zipstreamer": "^2.0.3",
2525
"deepdiver1975/tarstreamer": "^2.1.0",
26-
"doctrine/dbal": "^3.10.2",
26+
"doctrine/dbal": "^3.10.4",
2727
"egulias/email-validator": "^4.0.2",
2828
"fusonic/opengraph": "^2.3.0",
2929
"giggsey/libphonenumber-for-php-lite": "^8.13.48",

composer.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer/installed.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -450,17 +450,17 @@
450450
},
451451
{
452452
"name": "doctrine/dbal",
453-
"version": "3.10.2",
454-
"version_normalized": "3.10.2.0",
453+
"version": "3.10.4",
454+
"version_normalized": "3.10.4.0",
455455
"source": {
456456
"type": "git",
457457
"url": "https://github.com/doctrine/dbal.git",
458-
"reference": "c6c16cf787eaba3112203dfcd715fa2059c62282"
458+
"reference": "63a46cb5aa6f60991186cc98c1d1b50c09311868"
459459
},
460460
"dist": {
461461
"type": "zip",
462-
"url": "https://api.github.com/repos/doctrine/dbal/zipball/c6c16cf787eaba3112203dfcd715fa2059c62282",
463-
"reference": "c6c16cf787eaba3112203dfcd715fa2059c62282",
462+
"url": "https://api.github.com/repos/doctrine/dbal/zipball/63a46cb5aa6f60991186cc98c1d1b50c09311868",
463+
"reference": "63a46cb5aa6f60991186cc98c1d1b50c09311868",
464464
"shasum": ""
465465
},
466466
"require": {
@@ -476,21 +476,21 @@
476476
},
477477
"require-dev": {
478478
"doctrine/cache": "^1.11|^2.0",
479-
"doctrine/coding-standard": "13.0.1",
479+
"doctrine/coding-standard": "14.0.0",
480480
"fig/log-test": "^1",
481481
"jetbrains/phpstorm-stubs": "2023.1",
482-
"phpstan/phpstan": "2.1.22",
482+
"phpstan/phpstan": "2.1.30",
483483
"phpstan/phpstan-strict-rules": "^2",
484-
"phpunit/phpunit": "9.6.23",
485-
"slevomat/coding-standard": "8.16.2",
486-
"squizlabs/php_codesniffer": "3.13.1",
487-
"symfony/cache": "^5.4|^6.0|^7.0",
488-
"symfony/console": "^4.4|^5.4|^6.0|^7.0"
484+
"phpunit/phpunit": "9.6.29",
485+
"slevomat/coding-standard": "8.24.0",
486+
"squizlabs/php_codesniffer": "4.0.0",
487+
"symfony/cache": "^5.4|^6.0|^7.0|^8.0",
488+
"symfony/console": "^4.4|^5.4|^6.0|^7.0|^8.0"
489489
},
490490
"suggest": {
491491
"symfony/console": "For helpful console commands such as SQL execution and import of files."
492492
},
493-
"time": "2025-09-04T23:51:27+00:00",
493+
"time": "2025-11-29T10:46:08+00:00",
494494
"bin": [
495495
"bin/doctrine-dbal"
496496
],
@@ -547,7 +547,7 @@
547547
],
548548
"support": {
549549
"issues": "https://github.com/doctrine/dbal/issues",
550-
"source": "https://github.com/doctrine/dbal/tree/3.10.2"
550+
"source": "https://github.com/doctrine/dbal/tree/3.10.4"
551551
},
552552
"funding": [
553553
{

composer/installed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@
7474
'dev_requirement' => false,
7575
),
7676
'doctrine/dbal' => array(
77-
'pretty_version' => '3.10.2',
78-
'version' => '3.10.2.0',
79-
'reference' => 'c6c16cf787eaba3112203dfcd715fa2059c62282',
77+
'pretty_version' => '3.10.4',
78+
'version' => '3.10.4.0',
79+
'reference' => '63a46cb5aa6f60991186cc98c1d1b50c09311868',
8080
'type' => 'library',
8181
'install_path' => __DIR__ . '/../doctrine/dbal',
8282
'aliases' => array(),

doctrine/dbal/src/Driver/AbstractDB2Driver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use function version_compare;
1919

2020
/**
21-
* Abstract base implementation of the {@see Driver} interface for IBM DB2 based drivers.
21+
* Abstract base implementation of the {@see Driver} interface for Db2 based drivers.
2222
*/
2323
abstract class AbstractDB2Driver implements VersionAwarePlatformDriver
2424
{
@@ -66,17 +66,17 @@ public function createDatabasePlatformForVersion($version)
6666
Deprecation::trigger(
6767
'doctrine/dbal',
6868
'https://github.com/doctrine/dbal/pull/5156',
69-
'IBM DB2 < 11.1 support is deprecated and will be removed in DBAL 4.'
70-
. ' Consider upgrading to IBM DB2 11.1 or later.',
69+
'Db2 < 11.1 support is deprecated and will be removed in DBAL 4.'
70+
. ' Consider upgrading to Db2 11.1 or later.',
7171
);
7272

7373
return $this->getDatabasePlatform();
7474
}
7575

7676
/**
77-
* Detects IBM DB2 server version
77+
* Detects Db2 server version
7878
*
79-
* @param string $versionString Version string as returned by IBM DB2 server, i.e. 'DB2/LINUXX8664 11.5.8.0'
79+
* @param string $versionString Version string as returned by Db2 server, i.e. 'DB2/LINUXX8664 11.5.8.0'
8080
*
8181
* @throws DBALException
8282
*/

doctrine/dbal/src/Driver/IBMDB2/DataSourceName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use function strpos;
1212

1313
/**
14-
* IBM DB2 DSN
14+
* Db2 DSN
1515
*/
1616
final class DataSourceName
1717
{

doctrine/dbal/src/Driver/IBMDB2/Statement.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ private function bindLobs(): array
174174
foreach ($this->lobs as $param => $value) {
175175
if (is_resource($value)) {
176176
$handle = $handles[] = $this->createTemporaryFile();
177-
$path = stream_get_meta_data($handle)['uri'];
177+
$path = stream_get_meta_data($handle)['uri'] ?? null;
178+
assert($path !== null);
178179

179180
$this->copyStreamToStream($value, $handle);
180181

doctrine/dbal/src/Driver/Mysqli/Exception/ConnectionError.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use mysqli_sql_exception;
1010
use ReflectionProperty;
1111

12+
use const PHP_VERSION_ID;
13+
1214
/** @internal */
1315
final class ConnectionError extends AbstractException
1416
{
@@ -20,7 +22,9 @@ public static function new(mysqli $connection): self
2022
public static function upcast(mysqli_sql_exception $exception): self
2123
{
2224
$p = new ReflectionProperty(mysqli_sql_exception::class, 'sqlstate');
23-
$p->setAccessible(true);
25+
if (PHP_VERSION_ID < 80100) {
26+
$p->setAccessible(true);
27+
}
2428

2529
return new self($exception->getMessage(), $p->getValue($exception), (int) $exception->getCode(), $exception);
2630
}

doctrine/dbal/src/Driver/Mysqli/Exception/ConnectionFailed.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
use function assert;
1313

14+
use const PHP_VERSION_ID;
15+
1416
/** @internal */
1517
final class ConnectionFailed extends AbstractException
1618
{
@@ -25,7 +27,9 @@ public static function new(mysqli $connection): self
2527
public static function upcast(mysqli_sql_exception $exception): self
2628
{
2729
$p = new ReflectionProperty(mysqli_sql_exception::class, 'sqlstate');
28-
$p->setAccessible(true);
30+
if (PHP_VERSION_ID < 80100) {
31+
$p->setAccessible(true);
32+
}
2933

3034
return new self($exception->getMessage(), $p->getValue($exception), (int) $exception->getCode(), $exception);
3135
}

doctrine/dbal/src/Driver/Mysqli/Exception/InvalidCharset.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
use function sprintf;
1313

14+
use const PHP_VERSION_ID;
15+
1416
/** @internal */
1517
final class InvalidCharset extends AbstractException
1618
{
@@ -26,7 +28,9 @@ public static function fromCharset(mysqli $connection, string $charset): self
2628
public static function upcast(mysqli_sql_exception $exception, string $charset): self
2729
{
2830
$p = new ReflectionProperty(mysqli_sql_exception::class, 'sqlstate');
29-
$p->setAccessible(true);
31+
if (PHP_VERSION_ID < 80100) {
32+
$p->setAccessible(true);
33+
}
3034

3135
return new self(
3236
sprintf('Failed to set charset "%s": %s', $charset, $exception->getMessage()),

0 commit comments

Comments
 (0)