Added php8.0 features to Resizer
A simple PR that adds some php8.0 features and enforces return types.
Something of note, all the widths & heights should probably be ints but in reality they work off floats and changing them to int breaks the tests.
This PR lays groundwork for future improvements.
There maybe a bug when trying to resize in crop mode where the calculated values (float) for width & height are passed to crop() and implicitly cast to int resulting in a potential issue.
Need to add more tests for better coverage of the $resizer->setOptions(['mode' => ...]) feature.
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. If this is still being worked on, please respond and we will re-open this pull request. If this pull request is critical to your business, consider joining the Premium Support Program where a Service Level Agreement is offered.
@jaxwilko can you remerge develop into this branch and then let me know what's left on it?