File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -150,13 +150,22 @@ public function testCreatesTableInTransaction(string $platform)
150150 $ store ->save ($ key );
151151 }
152152
153- public static function providePlatforms ()
153+ public static function providePlatforms (): \ Generator
154154 {
155155 yield [\Doctrine \DBAL \Platforms \PostgreSQLPlatform::class];
156- yield [\Doctrine \DBAL \Platforms \PostgreSQL94Platform::class];
156+
157+ // DBAL < 4
158+ if (class_exists (\Doctrine \DBAL \Platforms \PostgreSQL94Platform::class)) {
159+ yield [\Doctrine \DBAL \Platforms \PostgreSQL94Platform::class];
160+ }
161+
157162 yield [\Doctrine \DBAL \Platforms \SqlitePlatform::class];
158163 yield [\Doctrine \DBAL \Platforms \SQLServerPlatform::class];
159- yield [\Doctrine \DBAL \Platforms \SQLServer2012Platform::class];
164+
165+ // DBAL < 4
166+ if (class_exists (\Doctrine \DBAL \Platforms \SQLServer2012Platform::class)) {
167+ yield [\Doctrine \DBAL \Platforms \SQLServer2012Platform::class];
168+ }
160169 }
161170
162171 public function testTableCreationInTransactionNotSupported ()
Original file line number Diff line number Diff line change 2222 "symfony/polyfill-php80" : " ^1.16"
2323 },
2424 "require-dev" : {
25- "doctrine/dbal" : " ^2.13|^3.0 " ,
25+ "doctrine/dbal" : " ^2.13|^3|^4 " ,
2626 "predis/predis" : " ~1.0"
2727 },
2828 "conflict" : {
You can’t perform that action at this time.
0 commit comments