It seems like $size can also be of type double. However, the property $size is declared as type integer. Maybe add an additional type check?
It seems like $size can also be of type double. However, the property $size is declared as type integer. Maybe add an additional type check?

carlosbuenosvinos/php-geckoboard-api