For all PageTriage commits, and possibly other extensions as well. Currently blocking ability to merge masters in those master branches.
<file name="includes/Hooks.php"> <error line="518" severity="warning" message="Parameter $block has undeclared type \Block" source="PhanUndeclaredTypeParameter"/> </file> <file name="includes/PageTriageUtil.php"> <error line="361" severity="warning" message="Parameter $block has undeclared type \Block" source="PhanUndeclaredTypeParameter"/> <error line="376" severity="error" message="Call to method getTarget from undeclared class \Block" source="PhanUndeclaredClassMethod"/>
It seems for some reason Phan isn't understanding the class alias for Block.
Wikimedia production calls to fix: https://codesearch.wmflabs.org/deployed/?q=(new%20Block%5C(%7C%5CbBlock%3A%3ATYPE_%7C%40(param%7Cvar%7Creturn)%20Block%5Cb)&i=nope&files=&repos=