gree / MagicSpice

MIT License
26 stars 4 forks source link

`convertStringToInt ` raises error #1

Closed synk closed 10 years ago

synk commented 10 years ago

convertStringToInt raises the following error if $string is not numeric.

sprintf(): Too few arguments

L22 should be

throw new \Exception(sprintf('%s is can not convert to int.', $string));

And in my opinion, can is more proper here than is can.

kuzuha commented 10 years ago

I just fixed it. Thank you for reporting.