It wouldn't. AFAIK, it generates a warning only for non-arrays, but in that case there would be a warning on the last line of getUri().
I'll fix it and add another test. Thanks