Skip to content

Commit

Permalink
chore: fix phpstan reportings
Browse files Browse the repository at this point in the history
  • Loading branch information
CybotTM committed Nov 22, 2024
1 parent 0bfcaab commit e44763e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Classes/Controller/ImageLinkRenderingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,7 @@ protected function getImageAttributes(string $passedImage): array
$imageAttributes
);

/** @var false|string[] $result */
$result = array_combine($imageAttributes[1], $imageAttributes[2]);

return is_array($result) ? $result : [];
return array_combine($imageAttributes[1], $imageAttributes[2]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Classes/Database/RteImagesDbHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ private function resolveFieldConfigurationAndRespectColumnsOverrides(
$columnsOverridesConfigOfField =
$GLOBALS['TCA'][$table]['types'][$recordType]['columnsOverrides'][$field]['config'] ?? null;

if ($columnsOverridesConfigOfField) {
if (null !== $columnsOverridesConfigOfField) {
ArrayUtility::mergeRecursiveWithOverrule($tcaFieldConf, $columnsOverridesConfigOfField);
}

Expand Down

0 comments on commit e44763e

Please sign in to comment.