@@ -1274,33 +1274,35 @@ public function getTestData(): iterable
1274
1274
' ,
1275
1275
];
1276
1276
1277
- yield 'locate function ' => [
1278
- $ this ->constantArray ([
1279
- [new ConstantIntegerType (1 ), $ this ->uintStringified ()],
1280
- [new ConstantIntegerType (2 ), TypeCombinator::addNull ($ this ->uintStringified ())],
1281
- [new ConstantIntegerType (3 ), TypeCombinator::addNull ($ this ->uintStringified ())],
1282
- [new ConstantIntegerType (4 ), $ this ->uintStringified ()],
1283
- ]),
1284
- '
1277
+ if (PHP_VERSION_ID > 70300 ) {
1278
+ yield 'locate function ' => [
1279
+ $ this ->constantArray ([
1280
+ [new ConstantIntegerType (1 ), $ this ->uintStringified ()],
1281
+ [new ConstantIntegerType (2 ), TypeCombinator::addNull ($ this ->uintStringified ())],
1282
+ [new ConstantIntegerType (3 ), TypeCombinator::addNull ($ this ->uintStringified ())],
1283
+ [new ConstantIntegerType (4 ), $ this ->uintStringified ()],
1284
+ ]),
1285
+ '
1285
1286
SELECT LOCATE(m.stringColumn, m.stringColumn, 0),
1286
1287
LOCATE(m.stringNullColumn, m.stringColumn, 0),
1287
1288
LOCATE(m.stringColumn, m.stringNullColumn, 0),
1288
1289
LOCATE( \'f \', \'foo \', 0)
1289
1290
FROM QueryResult\Entities\Many m
1290
1291
' ,
1291
- null ,
1292
- InstalledVersions::satisfies (new VersionParser (), 'doctrine/dbal ' , '>=3.4 ' )
1293
- ? null
1294
- : (
1292
+ null ,
1293
+ InstalledVersions::satisfies (new VersionParser (), 'doctrine/dbal ' , '>=3.4 ' )
1294
+ ? null
1295
+ : (
1295
1296
PHP_VERSION_ID >= 80100
1296
1297
? 'strpos(): Passing null to parameter #2 ($needle) of type string is deprecated '
1297
1298
: (
1298
- PHP_VERSION_ID >= 70300 && PHP_VERSION_ID < 80000
1299
- ? 'strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior '
1300
- : null
1301
- )
1302
- ),
1303
- ];
1299
+ PHP_VERSION_ID >= 70300 && PHP_VERSION_ID < 80000
1300
+ ? 'strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior '
1301
+ : null
1302
+ )
1303
+ ),
1304
+ ];
1305
+ }
1304
1306
1305
1307
yield 'lower function ' => [
1306
1308
$ this ->constantArray ([
0 commit comments