[TASK] Fix phpstan checkFunctionArgumentTypes errors in ext:core Site