Problem/Motivation
Part of #3324560: Replace strpos/substr with PHP 8's str_starts_with() / str_contains() / str_ends_with().
Proposed resolution
- Replace most
substr($a, 0, $i) == $b
withstr_starts_with($b)
. - A few are deliberately omitted where they would cause merge conflicts with other child issues.
Remaining tasks
- When reviewing, consider using
git diff --color-words
orgit diff --porecelain
. - Pay attention to the fact that
$i
should be the length of$b
.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A