[TASK] Consistently use str_starts_with and str_ends_with
With PHP 8.0 and symfony/polyfill-php80 it is possible to use native str_starts_with() and str_ends_with() methods. This way, the methods * StringUtility::beginsWith() * StringUtility::endsWith() are marked as deprecated. Resolves: #95293 Releases: master Change-Id: I46d15c2f8b93c5f8b487966b2015ebefb1711348 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71135 Tested-by:core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Wouter Wolters <typo3@wouterwolters.nl> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php 1 addition, 2 deletions...ses/Backend/ToolbarItems/SystemInformationToolbarItem.php
- typo3/sysext/backend/Classes/Configuration/TCA/UserFunctions.php 1 addition, 2 deletions...ysext/backend/Classes/Configuration/TCA/UserFunctions.php
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php 1 addition, 1 deletion...ackend/Classes/Controller/SiteConfigurationController.php
- typo3/sysext/core/Classes/Imaging/IconRegistry.php 1 addition, 2 deletionstypo3/sysext/core/Classes/Imaging/IconRegistry.php
- typo3/sysext/core/Classes/LinkHandling/UrlLinkHandler.php 1 addition, 3 deletionstypo3/sysext/core/Classes/LinkHandling/UrlLinkHandler.php
- typo3/sysext/core/Classes/Utility/GeneralUtility.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Utility/GeneralUtility.php
- typo3/sysext/core/Classes/Utility/StringUtility.php 4 additions, 0 deletionstypo3/sysext/core/Classes/Utility/StringUtility.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-95257-GeneralUtilityisFirstPartOfStr.rst 4 additions, 4 deletions...ster/Deprecation-95257-GeneralUtilityisFirstPartOfStr.rst
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-95293-StringUtilitystartsWithAndStringUtilityendsWith.rst 49 additions, 0 deletions...95293-StringUtilitystartsWithAndStringUtilityendsWith.rst
- typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php 0 additions, 181 deletionstypo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php
- typo3/sysext/core/Tests/UnitDeprecated/Utility/StringUtilityTest.php 208 additions, 0 deletions...t/core/Tests/UnitDeprecated/Utility/StringUtilityTest.php
- typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php 1 addition, 2 deletions...ysext/extbase/Classes/Mvc/Controller/ActionController.php
- typo3/sysext/extbase/Classes/Reflection/ClassSchema.php 1 addition, 2 deletionstypo3/sysext/extbase/Classes/Reflection/ClassSchema.php
- typo3/sysext/extbase/Classes/Reflection/ObjectAccess.php 4 additions, 5 deletionstypo3/sysext/extbase/Classes/Reflection/ObjectAccess.php
- typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php 1 addition, 2 deletionstypo3/sysext/extbase/Classes/Utility/ExtensionUtility.php
- typo3/sysext/extbase/Classes/Validation/ValidatorClassNameResolver.php 1 addition, 2 deletions...extbase/Classes/Validation/ValidatorClassNameResolver.php
- typo3/sysext/form/Classes/Hooks/FormFileProvider.php 1 addition, 2 deletionstypo3/sysext/form/Classes/Hooks/FormFileProvider.php
- typo3/sysext/form/Classes/Hooks/FormPagePreviewRenderer.php 1 addition, 3 deletionstypo3/sysext/form/Classes/Hooks/FormPagePreviewRenderer.php
- typo3/sysext/form/Classes/Mvc/Persistence/FormPersistenceManager.php 4 additions, 4 deletions...t/form/Classes/Mvc/Persistence/FormPersistenceManager.php
- typo3/sysext/form/Classes/Slot/FilePersistenceSlot.php 1 addition, 2 deletionstypo3/sysext/form/Classes/Slot/FilePersistenceSlot.php
Please register or sign in to comment