NetBeans support code completion for array items when their type is specified.
Code completion does not work for methods which have return type array in signature and specific type in @return annotation.
In following code methods from \SplFileInfo are offered for variable $file.
In following code is expected same behavior, but no methods are offered.
If return type is removed from getFiles() method, then methods are offered for $file.