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)
150
150
$ store ->save ($ key );
151
151
}
152
152
153
- public static function providePlatforms ()
153
+ public static function providePlatforms (): \ Generator
154
154
{
155
155
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
+
157
162
yield [\Doctrine \DBAL \Platforms \SqlitePlatform::class];
158
163
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
+ }
160
169
}
161
170
162
171
public function testTableCreationInTransactionNotSupported ()
Original file line number Diff line number Diff line change 22
22
"symfony/polyfill-php80" : " ^1.16"
23
23
},
24
24
"require-dev" : {
25
- "doctrine/dbal" : " ^2.13|^3.0 " ,
25
+ "doctrine/dbal" : " ^2.13|^3|^4 " ,
26
26
"predis/predis" : " ~1.0"
27
27
},
28
28
"conflict" : {
You can’t perform that action at this time.
0 commit comments