fabpot/Twig — comment on commit f742efd602f310c37fdbe40c5ffcf4d61f5a4f52
File: lib/Twig/Template.php line 251
By dkarlovi:

I'm guessing because of missing tests. Also, I think casting to int is a better option here, we're getting the error because of doing some math on indexes (weird layout) and our floats are all .0 (like, float(12), float(24) etc), they're just the wrong type.