-
Notifications
You must be signed in to change notification settings - Fork 9
Breaking: Remove unnecessary exception and null
checks
#63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
Additional details and impacted files |
It is breaking, so this will require bump to version 1.0.0 |
Are there other changes that might be breaking? Then we should get them in here too |
We should return a proper exception instead of a |
Yes, give me some time to fix it... |
I'm not sure what I should use for https://github.com/LycheeOrg/php-exif/blob/master/lib/PHPExif/Adapter/Exiftool.php#L187 and for https://github.com/LycheeOrg/php-exif/blob/master/lib/PHPExif/Adapter/Exiftool.php#L146 ... Any ideas from your side? |
I would just use an Umbrella exception like |
Co-authored-by: Benoît Viguier <ildyria@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Maybe add two codecov ignore in the try catch of https://app.codecov.io/gh/LycheeOrg/php-exif/pull/63/blob/lib/PHPExif/Adapter/Exiftool.php ? |
Kudos, SonarCloud Quality Gate passed!
|
Breaking:
Reader::getAdapter()
Reader::getExifFromFile()
NoAdapterException