claviska / SimpleImage

A PHP class that makes working with images and GD as simple as possible.
MIT License
1.38k stars 382 forks source link

convert falsy values of $exif to null #324

Closed rasteiner closed 1 year ago

rasteiner commented 1 year ago

fix #323

two things changed:

  1. Initialized the $exif field to null, just to get rid of the coalescing operator: the value is now "always set".
  2. return null when the value is "falsy": false and [] are therefore converted to null, respecting the function's return type.