If a request is made which causes the $array variable to be empty, such as a non-existent summoner, it causes a PHP error because the foreach loop does not have a valid array to loop over.
Coverage increased (+0.01%) to 93.66% when pulling e4d22a2d662926faf058b193f08f04d0545daa9c on stu177:master into 976df8cc121a6dd70463b9152155fb2357a19755 on paquettg:master.
Coverage increased (+0.01%) to 93.66% when pulling e4d22a2d662926faf058b193f08f04d0545daa9c on stu177:master into 976df8cc121a6dd70463b9152155fb2357a19755 on paquettg:master.
If a request is made which causes the $array variable to be empty, such as a non-existent summoner, it causes a PHP error because the foreach loop does not have a valid array to loop over.