Use case: docker run --rm alterway/php:7.4-cli "/path with spaces/to/phpunit.phar"
The command will fail due to word splitting that happens in entrypoint.sh when parameters are expanded:
[...]
if [[ ! -z "$1" ]]; then
exec php ${*}
else
exec php -h
fi
Changing php ${*} to php "${@}" fixes the issue.