Experimental Psalm plugin to have type coverage information
composer req --dev bafs/psalm-plugin-typecov
Register the plugin in psalm.xml:
<plugins>
<pluginClass class="BafS\PsalmTypecov\TypeCoverage">
<htmlReport output="typecov-report.html" />
</pluginClass>
</plugins>
You can run psalm (typically ./vendor/bin/psalm
) and the report will get generated on the fly.
Note: If you have issues with missing files, try using the --no-cache
flag.