#89407Fix get_dirs return type annotation
Description
Right now the method can return either an array, null or an string, but only array is defined within PHPDoc.
This prevents static code analysis for further code using this method, e.g. inside extensions.