[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:core-ci <typo3@b13.com> Tested-by:
Simon Schaufelberger <simonschaufi+typo3@gmail.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Simon Schaufelberger <simonschaufi+typo3@gmail.com> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Backend/Shortcut/ShortcutRepository.php 1 addition, 1 deletion...t/backend/Classes/Backend/Shortcut/ShortcutRepository.php
- typo3/sysext/backend/Classes/Configuration/BackendUserConfiguration.php 2 additions, 2 deletions...ackend/Classes/Configuration/BackendUserConfiguration.php
- typo3/sysext/backend/Classes/Controller/BackendController.php 2 additions, 2 deletions...3/sysext/backend/Classes/Controller/BackendController.php
- typo3/sysext/backend/Classes/Controller/NewRecordController.php 1 addition, 1 deletion...sysext/backend/Classes/Controller/NewRecordController.php
- typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php 2 additions, 2 deletions...t/backend/Classes/Form/Container/SingleFieldContainer.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php 2 additions, 2 deletions...nd/Classes/Form/FormDataProvider/AbstractItemProvider.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseRecordTypeValue.php 1 addition, 1 deletion...Classes/Form/FormDataProvider/DatabaseRecordTypeValue.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php 1 addition, 1 deletion.../backend/Classes/Form/FormDataProvider/TcaFlexProcess.php
- typo3/sysext/backend/Classes/Form/InlineStackProcessor.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Form/InlineStackProcessor.php
- typo3/sysext/backend/Classes/Http/Application.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Http/Application.php
- typo3/sysext/backend/Classes/Middleware/LockedBackendGuard.php 1 addition, 1 deletion.../sysext/backend/Classes/Middleware/LockedBackendGuard.php
- typo3/sysext/backend/Classes/Module/ModuleLoader.php 5 additions, 5 deletionstypo3/sysext/backend/Classes/Module/ModuleLoader.php
- typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php 1 addition, 1 deletion...ackend/Classes/Preview/StandardContentPreviewRenderer.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/Action/ShortcutButton.php 1 addition, 1 deletion...ses/Template/Components/Buttons/Action/ShortcutButton.php
- typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php 1 addition, 1 deletion...3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php
- typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Classes/View/BackendLayout/BackendLayout.php 1 addition, 1 deletion...sext/backend/Classes/View/BackendLayout/BackendLayout.php
- typo3/sysext/backend/Classes/View/BackendLayout/BackendLayoutCollection.php 2 additions, 2 deletions...nd/Classes/View/BackendLayout/BackendLayoutCollection.php
- typo3/sysext/backend/Classes/View/BackendLayout/DataProviderCollection.php 2 additions, 2 deletions...end/Classes/View/BackendLayout/DataProviderCollection.php
Please register or sign in to comment