I saw a news article saying not to charge the iPhone while sleeping or while unattended:
vancouversun.com
B.C. iPhone fire in middle of night leads to damages lawsuit against Apple
B.C. resident woke up from sound sleep to find bedroom filled with smoke and his burnt iPhone stuck to his leg and releasing gas.