[TASK] Avoid unnecessary null-coalesence operators etc
When PHP 8.0 support was added, a lot of places received extra checks with the $conf ?? []. PHPStan complained about this now, as methods already have native PHP types added now, and the check is not needed anymore, so it can be simplified A few other places did not receive proper PHPdoc annotations which has been fixed as well. In addition, some str_ends_with calls are migrated. Resolves: #102528 Releases: main Change-Id: I031d677473d4e9601fbf9d7c90214c311cfea863 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81975 Tested-by:core-ci <typo3@b13.com> Reviewed-by:
Andreas Kienast <a.fernandez@scripting-base.de> Tested-by:
Andreas Kienast <a.fernandez@scripting-base.de> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Showing
- .phpstorm.meta.php 8 additions, 1 deletion.phpstorm.meta.php
- Build/phpstan/phpstan-baseline.neon 3 additions, 113 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php 1 addition, 1 deletion...nd/Classes/Form/FormDataProvider/AbstractItemProvider.php
- typo3/sysext/core/Classes/Configuration/Richtext.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Configuration/Richtext.php
- typo3/sysext/core/Classes/Package/Package.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Package/Package.php
- typo3/sysext/core/Classes/TypoScript/TypoScriptService.php 1 addition, 1 deletiontypo3/sysext/core/Classes/TypoScript/TypoScriptService.php
- typo3/sysext/form/Classes/Domain/Finishers/AbstractFinisher.php 1 addition, 1 deletion...sysext/form/Classes/Domain/Finishers/AbstractFinisher.php
- typo3/sysext/frontend/Classes/ContentObject/CaseContentObject.php 1 addition, 1 deletion...sext/frontend/Classes/ContentObject/CaseContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ContentContentObject.php 3 additions, 3 deletions...t/frontend/Classes/ContentObject/ContentContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectArrayContentObject.php 1 addition, 1 deletion...Classes/ContentObject/ContentObjectArrayContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 8 additions, 8 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php 6 additions, 9 deletions...ext/frontend/Classes/ContentObject/FilesContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php 5 additions, 5 deletions...tend/Classes/ContentObject/FluidTemplateContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/HierarchicalMenuContentObject.php 1 addition, 1 deletion...d/Classes/ContentObject/HierarchicalMenuContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ImageContentObject.php 16 additions, 15 deletions...ext/frontend/Classes/ContentObject/ImageContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php 14 additions, 14 deletions.../Classes/ContentObject/Menu/AbstractMenuContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/Menu/CategoryMenuUtility.php 1 addition, 1 deletion...ontend/Classes/ContentObject/Menu/CategoryMenuUtility.php
- typo3/sysext/frontend/Classes/ContentObject/RecordsContentObject.php 1 addition, 1 deletion...t/frontend/Classes/ContentObject/RecordsContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ScalableVectorGraphicsContentObject.php 5 additions, 5 deletions...ses/ContentObject/ScalableVectorGraphicsContentObject.php
- typo3/sysext/frontend/Classes/DataProcessing/FilesProcessor.php 1 addition, 1 deletion...sysext/frontend/Classes/DataProcessing/FilesProcessor.php
Please register or sign in to comment