Skip to content
Snippets Groups Projects
Commit d21dcb2b authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Benni Mack
Browse files

[TASK] Use str_contains instead of strpos where possible

The (ugly) statement strpos($haystack, 'needle') !== false can be safely
replaced with str_contains($haystack, 'needle'). This is possible, as
a symfony polyfill for php 8.0 functions is in place.

Resolves: #95466
Releases: master
Change-Id: I313f47832a254c23c6815b6b44557a01019e59e7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71429


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 679ca065
Branches
Tags
No related merge requests found
Showing
with 30 additions and 30 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment