Closed janbarasek closed 4 years ago
I think you're hiding a usercode mistake. crop() accepts only int|string.
@dg Ok, I understand.
I think float
should be converted to int
. What do you think about?
Because float
is very common type, for example by round($width / 2)
in user code.
But it creates inconsistency. PHP does not convert float to int in strict mode.
I think return sizes from
calculateCutout
must beint
only.In case of
float
Image throwTypeError
:Thansk.