8000 Merge branch '3.4' into 4.4 · symfony/symfony@6e0593f · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e0593f

Browse files
Merge branch '3.4' into 4.4
* 3.4: Revert "[Cache] allow DBAL v3"
2 parents a14d8f9 + 896b69c commit 6e0593f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Symfony/Component/Cache/Tests/Adapter/PdoDbalAdapterTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Cache\Tests\Adapter;
1313

1414
use Doctrine\DBAL\DriverManager;
15+
use Doctrine\DBAL\Version;
1516
use Psr\Cache\CacheItemPoolInterface;
1617
use Symfony\Component\Cache\Adapter\PdoAdapter;
1718
use Symfony\Component\Cache\Tests\Traits\PdoPruneableTrait;
@@ -31,6 +32,10 @@ public static function setUpBeforeClass(): void
3132
self::markTestSkipped('Extension pdo_sqlite required.');
3233
}
3334

35+
if (\PHP_VERSION_ID >= 80000 && class_exists(Version::class)) {
36+
self::markTestSkipped('Doctrine DBAL 2.x is incompatible with PHP 8.');
37+
}
38+
3439
self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_cache');
3540
}
3641

src/Symfony/Component/Cache/Tests/Simple/PdoDbalCacheTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Cache\Tests\Simple;
1313

1414
use Doctrine\DBAL\DriverManager;
15+
use Doctrine\DBAL\Version;
1516
use Psr\SimpleCache\CacheInterface;
1617
use Symfony\Component\Cache\Simple\PdoCache;
1718
use Symfony\Component\Cache\Tests\Traits\PdoPruneableTrait;
@@ -32,6 +33,10 @@ public static function setUpBeforeClass(): void
3233
self::markTestSkipped('Extension pdo_sqlite required.');
3334
}
3435

36+
if (\PHP_VERSION_ID >= 80000 && class_exists(Version::class)) {
37+
self::markTestSkipped('Doctrine DBAL 2.x is incompatible with PHP 8.');
38+
}
39+
3540
self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_cache');
3641

3742
$pool = new PdoCache(DriverManager::getConnection(['driver' => 'pdo_sqlite', 'path' => self::$dbFile]));

0 commit comments

Comments
 (0)
0