Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix Possible Null value in $haystack
Signed-off-by: lps-rocks <[email protected]>
  • Loading branch information
lps-rocks authored Oct 5, 2025
commit 3f6fb8f9904083d9438322ba471abd90f5586ea8
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public function handle(Event $event): void {
return;
}

if (!str_starts_with($file->getMimetype(), 'image/')) {
// Check mimetype
$mimetype = $file->getMimetype();
if ($mimetype === null || !str_starts_with($file->getMimetype(), 'image/')) {
return;
}

Expand Down