File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -249,11 +249,14 @@ protected function isFieldKnown(&$field)
249
249
/**
250
250
* Extract GPS coordinates from components array
251
251
*
252
- * @param array $components
252
+ * @param array|string $components
253
253
* @return float
254
254
*/
255
- protected function extractGPSCoordinate (array $ components )
255
+ protected function extractGPSCoordinate ($ components )
256
256
{
257
+ if (!is_array ($ components )) {
258
+ $ components = array ($ components );
259
+ }
257
260
$ components = array_map (array ($ this , 'normalizeComponent ' ), $ components );
258
261
259
262
if (count ($ components ) > 2 ) {
Original file line number Diff line number Diff line change @@ -611,7 +611,8 @@ public function testAdapterConsistency()
611
611
$ methods = $ reflClass ->getMethods (ReflectionMethod::IS_PUBLIC );
612
612
$ testfiles = array (
613
613
PHPEXIF_TEST_ROOT . '/files/morning_glory_pool_500.jpg ' ,
614
- PHPEXIF_TEST_ROOT . '/files/dsc_5794.jpg '
614
+ PHPEXIF_TEST_ROOT . '/files/dsc_5794.jpg ' ,
615
+ PHPEXIF_TEST_ROOT . '/files/dsc_0003.jpg '
615
616
);
616
617
617
618
$ adapter_exiftool = new \PHPExif \Adapter \Exiftool ();
You can’t perform that action at this time.
0 commit comments