jakzal / phpqa

Docker image that provides static analysis tools for PHP
https://hub.docker.com/r/jakzal/phpqa/
MIT License
1.22k stars 67 forks source link

larastan: not found #283

Closed JuanS closed 3 years ago

JuanS commented 3 years ago

Can't run some of the commands, like larastan or phpinsights

/entrypoint.sh: exec: line 6: larastan: not found /entrypoint.sh: exec: line 6: phpinsights: not found

Other commands like phpstan or phpmd works just fine as expected.

docker run \
    --init \
    -it \
    --rm \
    -v "$(pwd)":/project \
    -w /project \
    jakzal/phpqa \
    phpinsights

Am I doing anything wrong? Are these commands exepcted to be triggered differently?

JuanS commented 3 years ago

I think why, some tools are not ready in PHP 8

Use jakzal/phpqa:php7.4-alpine will fix phpinsights, but not larastan

jakzal commented 3 years ago

@JuanS larastan is not a command in its own right, but a phpstan plugin.

Bare in mind that we had to isolate larastan as it was breaking on other people's projects. From the next release, you'll need to use phpstan-larastan as a phpstan command instead of phpstan if you want to use it with the larastan plugin.

JuanS commented 3 years ago

Understood. Thanks jakzal!