Skip to content

Commit 659c58a

Browse files
committed
fix dependencies, still broken phpstan
1 parent 5981c54 commit 659c58a

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/PHPExif/Adapter/Exiftool.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
use function Safe\json_decode;
1515
use function Safe\stream_get_contents;
1616
use function Safe\fclose;
17+
use function Safe\proc_close;
18+
use function Safe\proc_open;
1719

1820
/**
1921
* PHP Exif Exiftool Reader Adapter

lib/PHPExif/Adapter/Native.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,8 @@ public function getExifFromFile(string $file): Exif
212212
if (!(array_key_exists('height', $data)) || !(array_key_exists('width', $data))) {
213213
try {
214214
$img_size = getimagesize($file);
215-
if ($img_size[0] !== null && $img_size[1] !== null) {
216-
$data['width'] = $img_size[0];
217-
$data['height'] = $img_size[1];
218-
}
215+
$data['width'] = $img_size[0];
216+
$data['height'] = $img_size[1];
219217
} catch (ImageException) {
220218
// Fail silently
221219
}

0 commit comments

Comments
 (0)