This hook was introduced with r473958 roughly 2 years ago, and it takes a User and a Title as parameters. This is common with legacy hooks, but since we're migrating away from these two classes in favour of UserIdentity and LinkTarget, hooks should also be updated.
However, since this specific hook has no usages shown on codesearch, we are just going to remove it - deprecated in 1.37 for removal in 1.38