Skip to content

Commit 219b0b4

Browse files
committed
Scrutinizer Suggestion
1 parent bdc4680 commit 219b0b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpSpreadsheet/Writer/Xlsx/ContentTypes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use PhpOffice\PhpSpreadsheet\Shared\File;
77
use PhpOffice\PhpSpreadsheet\Shared\XMLWriter;
88
use PhpOffice\PhpSpreadsheet\Spreadsheet;
9-
use PhpOffice\PhpSpreadsheet\Worksheet\Drawing;
9+
use PhpOffice\PhpSpreadsheet\Worksheet\Drawing as WorksheetDrawing;
1010
use PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing;
1111
use PhpOffice\PhpSpreadsheet\Writer\Exception as WriterException;
1212

@@ -134,7 +134,7 @@ public function writeContentTypes(Spreadsheet $spreadsheet, bool $includeCharts
134134
$mimeType = '';
135135

136136
$drawing = $this->getParentWriter()->getDrawingHashTable()->getByIndex($i);
137-
if ($drawing instanceof Drawing) {
137+
if ($drawing instanceof WorksheetDrawing) {
138138
$extension = strtolower($drawing->getExtension());
139139
if ($drawing->getIsUrl()) {
140140
$mimeType = image_type_to_mime_type($drawing->getType());

0 commit comments

Comments
 (0)