File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Lock \Tests \Store ;
1313
1414use Doctrine \DBAL \DriverManager ;
15+ use Doctrine \DBAL \Version ;
1516use Symfony \Component \Lock \PersistingStoreInterface ;
1617use Symfony \Component \Lock \Store \PdoStore ;
1718
@@ -30,6 +31,10 @@ public static function setUpBeforeClass(): void
3031 {
3132 self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_lock ' );
3233
34+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36+ }
37+
3338 $ store = new PdoStore (DriverManager::getConnection (['driver ' => 'pdo_sqlite ' , 'path ' => self ::$ dbFile ]));
3439 $ store ->createTable ();
3540 }
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \Lock \Tests \Store ;
1313
14+ use Doctrine \DBAL \Version ;
1415use Symfony \Component \Lock \Key ;
1516use Symfony \Component \Lock \PersistingStoreInterface ;
1617use Symfony \Component \Lock \Store \PdoStore ;
@@ -30,6 +31,10 @@ public static function setUpBeforeClass(): void
3031 {
3132 self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_lock ' );
3233
34+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36+ }
37+
3338 $ store = new PdoStore ('sqlite: ' .self ::$ dbFile );
3439 $ store ->createTable ();
3540 }
Original file line number Diff line number Diff line change 2020 "psr/log" : " ~1.0"
2121 },
2222 "require-dev" : {
23- "doctrine/dbal" : " ~ 2.5" ,
23+ "doctrine/dbal" : " ^ 2.5|^3.0 " ,
2424 "predis/predis" : " ~1.0"
2525 },
2626 "conflict" : {
You can’t perform that action at this time.
0 commit comments