Need a space between (array) and $files.  See type casting on Coding Standards page.

By the way, confession - until super recently, I'd constantly get type hinting and type casting mixed up.