Change typehint to callable instead of Closure