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 12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
14
use Doctrine \DBAL \DriverManager ;
15
+ use Doctrine \DBAL \Version ;
15
16
use Symfony \Component \Lock \PersistingStoreInterface ;
16
17
use Symfony \Component \Lock \Store \PdoStore ;
17
18
@@ -30,6 +31,10 @@ public static function setUpBeforeClass(): void
30
31
{
31
32
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_lock ' );
32
33
34
+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36
+ }
37
+
33
38
$ store = new PdoStore (DriverManager::getConnection (['driver ' => 'pdo_sqlite ' , 'path ' => self ::$ dbFile ]));
34
39
$ store ->createTable ();
35
40
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
+ use Doctrine \DBAL \Version ;
14
15
use Symfony \Component \Lock \Key ;
15
16
use Symfony \Component \Lock \PersistingStoreInterface ;
16
17
use Symfony \Component \Lock \Store \PdoStore ;
@@ -30,6 +31,10 @@ public static function setUpBeforeClass(): void
30
31
{
31
32
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_lock ' );
32
33
34
+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36
+ }
37
+
33
38
$ store = new PdoStore ('sqlite: ' .self ::$ dbFile );
34
39
$ store ->createTable ();
35
40
}
Original file line number Diff line number Diff line change 20
20
"psr/log" : " ~1.0"
21
21
},
22
22
"require-dev" : {
23
- "doctrine/dbal" : " ~ 2.5" ,
23
+ "doctrine/dbal" : " ^ 2.5|^3.0 " ,
24
24
"predis/predis" : " ~1.0"
25
25
},
26
26
"conflict" : {
You can’t perform that action at this time.
0 commit comments