Skip to content

Commit

Permalink
chore: remove superfluous is null check
Browse files Browse the repository at this point in the history
fixes phpstan error Offset 'data-htmlarea-file…' on non-empty-array<string, string> on left side of ?? always exists and is not nullable.
  • Loading branch information
CybotTM authored Oct 27, 2023
1 parent 2f3abf4 commit 84749ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/ImageLinkRenderingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function renderImages(?string $content, array $conf = []): string
//
// But we leave this as fallback for older render versions.
if ((count($imageAttributes) > 0) && isset($imageAttributes['data-htmlarea-file-uid'])) {
$fileUid = (int) ($imageAttributes['data-htmlarea-file-uid'] ?? 0);
$fileUid = (int) ($imageAttributes['data-htmlarea-file-uid']);

if ($fileUid > 0) {
try {
Expand Down

0 comments on commit 84749ea

Please sign in to comment.