diff --git a/Build/phpstan.level2.neon b/Build/phpstan.level2.neon index 4d602ad875eb59521609400d39bc324669fca9f9..514b6d12b2c2bd39e7cbbce9173fd19e416ac49a 100644 --- a/Build/phpstan.level2.neon +++ b/Build/phpstan.level2.neon @@ -20,7 +20,7 @@ rules: - PHPStan\Rules\Generics\TraitTemplateTypeRule - PHPStan\Rules\Methods\IncompatibleDefaultParameterTypeRule - PHPStan\Rules\Operators\InvalidBinaryOperationRule -# - PHPStan\Rules\Operators\InvalidUnaryOperationRule + - PHPStan\Rules\Operators\InvalidUnaryOperationRule - PHPStan\Rules\Operators\InvalidComparisonOperationRule - PHPStan\Rules\PhpDoc\IncompatiblePhpDocTypeRule - PHPStan\Rules\PhpDoc\IncompatiblePropertyPhpDocTypeRule diff --git a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php index a3bd23a69ae67a070245d66b10a00dbdfbf24860..2eae23efd25aa79a91a9cadf5482313cc4533af3 100644 --- a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php +++ b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php @@ -1152,16 +1152,17 @@ class DataMapProcessor * Return only ids that are integer - so no "NEW..." values * * @param string[]|int[] $ids - * @return int[]|string[] + * @return int[] */ protected function filterNumericIds(array $ids) { - return array_filter( + $ids = array_filter( $ids, function ($id) { return MathUtility::canBeInterpretedAsInteger($id); } ); + return array_map('intval', $ids); } /**