Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C CMS
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • CI
  • CMS
  • Repository
Switch branch/tag
  • cms
  • typo3
  • sysext
  • impexp
  • Classes
  • ImportExport.php
Find file BlameHistoryPermalink
  • Nikita Hovratov's avatar
    [TASK] Use str_contains instead of strpos where possible · d21dcb2b
    Nikita Hovratov authored Oct 04, 2021 and Benni Mack's avatar Benni Mack committed Oct 12, 2021
    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: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
    Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
    Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
    Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
    Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
    d21dcb2b