Deprecation: #95257 - GeneralUtility::isFirstPartOfStr()¶
See Issue #95257
The helper method
been marked as deprecated, as the newly available PHP-built in
str_starts_with() can be used instead, which
supports proper typing and is faster on PHP 8.0.
For PHP 7.4 installations, the dependency
adds the PHP function in lower PHP environments, which TYPO3
Core ships as dependency.
GeneralUtility::isFirstPartOfStr() will trigger a
PHP deprecation notice.
TYPO3 installations using this TYPO3 API function - either via extensions or in their own site-specific code. An analysis via TYPO3’s extension scanner will show any matches.
Replace all calls of
str_starts_with() to avoid deprecation warnings and to keep
your code up-to-date.
See https://www.php.net/manual/en/function.str-starts-with.php for further syntax.