[TASK] Use BackedEnum for LikeWildcard
PHP 8 introduced native Enumerations, which can now be used instead of our own implementation from TYPO3 v7. Enums are effectively singletons making it much faster than previously when used many times. Since LikeWildcard in indexed search is internal and only used internally within indexed search, the usage is rather small. Resolves: #100213 Releases: main Change-Id: I4d3f60c7d4b91e921271487c8688036939403805 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78162 Tested-by:Stefan Bürk <stefan@buerk.tech> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
core-ci <typo3@b13.com>
Showing
- typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php 2 additions, 4 deletions...earch/Classes/Domain/Repository/IndexSearchRepository.php
- typo3/sysext/indexed_search/Classes/Utility/LikeWildcard.php 14 additions, 15 deletionstypo3/sysext/indexed_search/Classes/Utility/LikeWildcard.php
- typo3/sysext/indexed_search/Tests/Functional/Utility/LikeWildcardTest.php 1 addition, 5 deletions...exed_search/Tests/Functional/Utility/LikeWildcardTest.php
Please register or sign in to comment