fixed a problem for older PHP versions where callable is not yet a type for parameters