Steps to replicate the issue (include links if applicable):
- Clone the latest MW master commit (e.g. 7b57bfc) using git
- Add a minimal .env file, e.g. the default one at https://gerrit.wikimedia.org/g/mediawiki/core/+/HEAD/DEVELOPERS.md#3_prepare-file
- Run docker compose up -d
- Run docker compose exec mediawiki composer update
- Run docker compose exec mediawiki composer run phan
What happens?:
[...] > phan -d . --long-progress-bar ERROR: Phan 6.x requires php-ast 1.1.3+ because it depends on AST version 120. php-ast '1.1.2' is installed. php-ast can be installed in the following ways: 1. Unix (PECL): Run 'pecl install ast' and add extension=ast.so to your php.ini. 2. Unix (Compile): Download https://github.com/nikic/php-ast then compile and install the extension as follows: cd path/to/php-ast phpize ./configure make sudo make install Additionally, add extension=ast.so to your php.ini file. For more information, see https://github.com/phan/phan/wiki/Getting-Started#installing-dependencies Exiting without analyzing files. Script phan -d . --long-progress-bar handling the phan event returned with error code 1
What should have happened instead?:
phan should run normally
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
MW 7b57bfc
Other information (browser name/version, screenshots, etc.):