beberlei / assert

Thin assertion library for use in libraries and business-model
Other
2.41k stars 188 forks source link

Integerish failing on array #235

Closed tomato-net closed 6 years ago

tomato-net commented 6 years ago

Assertion::integerish([]) fails due to Array to String conversion and therefore does not throw the expected exception.

The change from \strval(\intval($value)) != \strval($value) to \strval(\intval($value)) !== \strval($value) in 2.7.7 seems to be causing this issue.

rquadling commented 6 years ago

Thank you for reporting this.

A fix is in the works and should be released shortly.