The function getFunctionHandler in the Scanner/CodeScanner-class has a defined return type of "?callable".
However, the actual return value is ?array (see line 93: null or [$this, $handler]).
It seems to be solved when "[$this, $handler]" is replaced by "$handler".