Skip to content

Commit 7ba0a93

Browse files
authored
Revert dbal changes (#736)
1 parent 315147a commit 7ba0a93

File tree

9 files changed

+16
-296
lines changed

9 files changed

+16
-296
lines changed

.github/workflows/tests.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
- 6.*
3131
dependencies:
3232
- highest
33-
doctrine-dbal:
34-
- highest
3533
exclude:
3634
- php: '7.2'
3735
symfony-version: 6.*
@@ -43,18 +41,12 @@ jobs:
4341
- php: '7.2'
4442
symfony-version: 4.4.*
4543
dependencies: lowest
46-
doctrine-dbal: '^2.13'
4744
- php: '7.2'
4845
symfony-version: 5.*
4946
dependencies: lowest
50-
doctrine-dbal: '^2.13'
5147
- php: '8.0'
5248
symfony-version: 6.*
5349
dependencies: lowest
54-
doctrine-dbal: '^2.13'
55-
- php: '8.0'
56-
symfony-version: 6.*
57-
doctrine-dbal: '<3.2'
5850

5951
steps:
6052
- name: Checkout
@@ -76,10 +68,6 @@ jobs:
7668
run: composer require --dev phpunit/phpunit ^9.3.9 --no-update
7769
if: matrix.php == '8.0' && matrix.dependencies == 'lowest'
7870

79-
- name: Update Doctrine DBAL
80-
run: composer require --dev doctrine/dbal "${{ matrix.doctrine-dbal }}" --no-update
81-
if: matrix.doctrine-dbal != 'highest'
82-
8371
- name: Install dependencies
8472
uses: ramsey/composer-install@v1
8573
with:

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 4.9.2
4+
5+
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v4.9.2.
6+
7+
### Bug Fixes
8+
9+
- We decided to revert two previous PRs that aimed to remove deprecation warnings during test runs [(#736)](https://github.com/getsentry/sentry-symfony/pull/736)
10+
11+
- Revert: Add a new Doctrine DBAL tracing driver that does not implement the deprecated `VersionAwarePlatformDriver` [(#723)](https://github.com/getsentry/sentry-symfony/pull/723)
12+
- Revert: Fix a regression in `TracingDriverForV32` by adding `VersionAwarePlatformDriver::createDatabasePlatformForVersion` [(#731)](https://github.com/getsentry/sentry-symfony/pull/731)
13+
14+
We are sorry for the inconvenience caused by these changes.
15+
316
## 4.9.1
417

518
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v4.9.1.

psalm-baseline.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,6 @@
5050
<code>$params</code>
5151
</MoreSpecificImplementedParamType>
5252
</file>
53-
<file src="src/Tracing/Doctrine/DBAL/TracingDriverForV32.php">
54-
<InvalidReturnStatement occurrences="1">
55-
<code>$this-&gt;decoratedDriver-&gt;getSchemaManager($conn, $platform)</code>
56-
</InvalidReturnStatement>
57-
<InvalidReturnType occurrences="1">
58-
<code>AbstractSchemaManager&lt;T&gt;</code>
59-
</InvalidReturnType>
60-
<MoreSpecificImplementedParamType occurrences="1">
61-
<code>$params</code>
62-
</MoreSpecificImplementedParamType>
63-
</file>
6453
<file src="src/Tracing/HttpClient/TraceableResponseForV5.php">
6554
<UndefinedInterfaceMethod occurrences="1">
6655
<code>toStream</code>

src/Tracing/Doctrine/DBAL/TracingDriverForV32.php

Lines changed: 0 additions & 105 deletions
This file was deleted.

src/aliases.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Sentry\SentryBundle;
66

7-
use Doctrine\DBAL\Exception\SchemaDoesNotExist;
87
use Doctrine\DBAL\Result;
98
use Sentry\SentryBundle\Tracing\Cache\TraceableCacheAdapter;
109
use Sentry\SentryBundle\Tracing\Cache\TraceableCacheAdapterForV2;
@@ -15,7 +14,6 @@
1514
use Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingDriver;
1615
use Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingDriverForV2;
1716
use Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingDriverForV3;
18-
use Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingDriverForV32;
1917
use Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingStatement;
2018
use Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingStatementForV2;
2119
use Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingStatementForV3;
@@ -55,12 +53,7 @@ class_alias(TraceableTagAwareCacheAdapterForV2::class, TraceableTagAwareCacheAda
5553
if (!class_exists(TracingStatement::class)) {
5654
if (class_exists(Result::class)) {
5755
class_alias(TracingStatementForV3::class, TracingStatement::class);
58-
59-
if (class_exists(SchemaDoesNotExist::class)) {
60-
class_alias(TracingDriverForV32::class, TracingDriver::class);
61-
} else {
62-
class_alias(TracingDriverForV3::class, TracingDriver::class);
63-
}
56+
class_alias(TracingDriverForV3::class, TracingDriver::class);
6457
} elseif (interface_exists(Result::class)) {
6558
class_alias(TracingStatementForV2::class, TracingStatement::class);
6659
class_alias(TracingDriverForV2::class, TracingDriver::class);

tests/DoctrineTestCase.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
88
use Doctrine\DBAL\Driver;
99
use Doctrine\DBAL\Driver\ResultStatement;
10-
use Doctrine\DBAL\Exception\SchemaDoesNotExist;
1110
use PHPUnit\Framework\TestCase;
1211

1312
abstract class DoctrineTestCase extends TestCase
@@ -29,12 +28,6 @@ protected static function isDoctrineDBALVersion3Installed(): bool
2928
&& !self::isDoctrineDBALVersion2Installed();
3029
}
3130

32-
protected static function isDoctrineDBALVersion32Installed(): bool
33-
{
34-
return self::isDoctrineDBALInstalled()
35-
&& class_exists(SchemaDoesNotExist::class);
36-
}
37-
3831
protected static function isDoctrineBundlePackageInstalled(): bool
3932
{
4033
return class_exists(DoctrineBundle::class);

tests/Tracing/Doctrine/DBAL/TracingDriverForV32Test.php

Lines changed: 0 additions & 148 deletions
This file was deleted.

tests/Tracing/Doctrine/DBAL/TracingDriverForV3Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ final class TracingDriverForV3Test extends DoctrineTestCase
2626

2727
public static function setUpBeforeClass(): void
2828
{
29-
if (!self::isDoctrineDBALVersion3Installed() || self::isDoctrineDBALVersion32Installed()) {
30-
self::markTestSkipped('This test requires the version of the "doctrine/dbal" Composer package to be >= 3.0 <= 3.2.');
29+
if (!self::isDoctrineDBALVersion3Installed()) {
30+
self::markTestSkipped('This test requires the version of the "doctrine/dbal" Composer package to be >= 3.0.');
3131
}
3232
}
3333

0 commit comments

Comments
 (0)