@@ -1533,35 +1533,33 @@ private function yieldConditionalDataset(): iterable
1533
1533
];
1534
1534
}
1535
1535
1536
- if (PHP_VERSION_ID >= 70400 ) {
1537
- yield 'locate function ' => [
1538
- $ this ->constantArray ([
1539
- [new ConstantIntegerType (1 ), $ this ->uintOrStringified ()],
1540
- [new ConstantIntegerType (2 ), TypeCombinator::addNull ($ this ->uintOrStringified ())],
1541
- [new ConstantIntegerType (3 ), TypeCombinator::addNull ($ this ->uintOrStringified ())],
1542
- [new ConstantIntegerType (4 ), $ this ->uintOrStringified ()],
1543
- ]),
1544
- '
1536
+ yield 'locate function ' => [
1537
+ $ this ->constantArray ([
1538
+ [new ConstantIntegerType (1 ), $ this ->uintOrStringified ()],
1539
+ [new ConstantIntegerType (2 ), TypeCombinator::addNull ($ this ->uintOrStringified ())],
1540
+ [new ConstantIntegerType (3 ), TypeCombinator::addNull ($ this ->uintOrStringified ())],
1541
+ [new ConstantIntegerType (4 ), $ this ->uintOrStringified ()],
1542
+ ]),
1543
+ '
1545
1544
SELECT LOCATE(m.stringColumn, m.stringColumn, 0),
1546
1545
LOCATE(m.stringNullColumn, m.stringColumn, 0),
1547
1546
LOCATE(m.stringColumn, m.stringNullColumn, 0),
1548
1547
LOCATE( \'f \', \'foo \', 0)
1549
1548
FROM QueryResult\Entities\Many m
1550
1549
' ,
1551
- null ,
1552
- InstalledVersions::satisfies (new VersionParser (), 'doctrine/dbal ' , '>=3.4 ' )
1553
- ? null
1554
- : (
1555
- PHP_VERSION_ID >= 80100
1556
- ? 'strpos(): Passing null to parameter #2 ($needle) of type string is deprecated '
1557
- : (
1558
- PHP_VERSION_ID < 80000
1559
- ? 'strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior '
1560
- : null
1561
- )
1562
- ),
1563
- ];
1564
- }
1550
+ null ,
1551
+ InstalledVersions::satisfies (new VersionParser (), 'doctrine/dbal ' , '>=3.4 ' )
1552
+ ? null
1553
+ : (
1554
+ PHP_VERSION_ID >= 80100
1555
+ ? 'strpos(): Passing null to parameter #2 ($needle) of type string is deprecated '
1556
+ : (
1557
+ PHP_VERSION_ID < 80000
1558
+ ? 'strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior '
1559
+ : null
1560
+ )
1561
+ ),
1562
+ ];
1565
1563
1566
1564
$ ormVersion = InstalledVersions::getVersion ('doctrine/orm ' );
1567
1565
$ hasOrm3 = $ ormVersion !== null && strpos ($ ormVersion , '3. ' ) === 0 ;
0 commit comments