Commit f8478f8
authored
[12.x] Handle Null Check in Str::contains (#55991)
* [12.x] Handle Null Check in Str::contains
This PR adds a null check to the $haystack parameter. Null values for this parameter have been deprecated.
* [12.x] Micro-optimize Str::startsWith and Str::endsWith
Return earlier if $haystack is null1 parent 959fac8 commit f8478f8
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
300 | 304 | | |
301 | 305 | | |
302 | 306 | | |
| |||
384 | 388 | | |
385 | 389 | | |
386 | 390 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
395 | 399 | | |
396 | 400 | | |
397 | 401 | | |
| |||
1638 | 1642 | | |
1639 | 1643 | | |
1640 | 1644 | | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
1645 | 1645 | | |
1646 | 1646 | | |
1647 | 1647 | | |
1648 | 1648 | | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
1649 | 1653 | | |
1650 | 1654 | | |
1651 | 1655 | | |
| |||
0 commit comments