spatie / statamic-responsive-images

Responsive images for Statamic 3
MIT License
99 stars 29 forks source link

Prevent float to int conversion warning #151

Closed kevinmeijer97 closed 2 years ago

kevinmeijer97 commented 2 years ago

The $predictedFileSize on line 32 provides a float instead of an integer, in that case we can change the parameter type declaration to float to prevent the Implicit conversion from float to int loses precision warning.

aerni commented 2 years ago

This closes #150.

riasvdv commented 2 years ago

Thanks!