Zf5 has a inbuilt mechanism which prevents overcharging .The current get cuts off as the threshold has been reached .
Reference article :
here
Yeah Zenfone 5 has inbuilt mechanism which prevents overcharging, but it doesn't mean that you should put your phone pluged in to the charger whole day and night.