From 6b4238ed734cade7994fa9121072d889d4bb285e Mon Sep 17 00:00:00 2001 From: jdevinemt <65512359+jdevinemt@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:01:20 -0700 Subject: [PATCH] Fixed PHPDoc return type hint for \PHPExif\Exif::getGPS() The `getGPS()` method in `lib/PHPExif` had a return value of `array|boolean` in the PHPDoc block. The return value should always be a string. `setGPS()` accepts a string, and when the GPS data value is written directly elsewhere in this library, it is also set to a string. This was causing issues during static analysis. I changed the return type in the PHPDoc block to `string|boolean`. --- lib/PHPExif/Exif.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PHPExif/Exif.php b/lib/PHPExif/Exif.php index e6614e4..75127f8 100755 --- a/lib/PHPExif/Exif.php +++ b/lib/PHPExif/Exif.php @@ -817,7 +817,7 @@ public function setOrientation($value) /** * Returns GPS coordinates, if it exists * - * @return array|boolean + * @return string|boolean */ public function getGPS() {