Execute in the terminal:
docker run --rm -ti -v ./html:/app php:8.0 bash
Then:
find /app -name '*.php' | xargs -n1 /usr/local/bin/php -l > /app/reportphp8
Execute in the terminal:
docker run --rm -ti -v ./html:/app php:8.0 bash
Then:
find /app -name '*.php' | xargs -n1 /usr/local/bin/php -l > /app/reportphp8
Use the absolute path instead of
./html
if you get this error: