phan requires the ast php extension to do its work. Installing it on MediaWiki-Vagrant, however, is a chore.
It should really just be as easy as apt-get install php7.2-ast, instead of having to install pear, manually set up pear in PATH, then use pecl to compile php-ast and add it to php.ini.
Based on T221923: Please import php-xdebug to apt.wm.o component/php72, it should be imported in component/php72, just like php-xdebug was.