The expression return $parser->parse($filename) could also return false which is incompatible with the documented return type array. Did you maybe forget to handle an error condition?
If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.
Loading history...
32
} catch (\Exception $e) {
33
throw new ParserException($filename . ' cannot be parsed [' . $ext . ' driver used]');
If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.