laravel/pint
[BUG] Extension shows "Formatting completed" but silently fails when host PHP version is incompatible
Fermée
#388 ouverte le 5 août 2025
help wanted
Métriques du dépôt
- Stars
- (3 127 étoiles)
- Métriques de merge PR
- (Merge moyen 2j 1h) (12 PRs mergées en 30 j)
Description
Pint Version
1.24
PHP Version
7.4
Description
Host PHP: php -v 8.1
- Project PHP:
docker exec [container] php -v8.2 - OS: Ubuntu 22.04
Expected Behavior:
- Extension should warn about PHP version mismatch
- Formatting should fail visibly (not silently)
Additional Context:
- Works when manually running
./vendor/bin/pintin the container - No errors in VS Code's "Laravel Pint" output panel
Steps To Reproduce
Proposed Fixes:
- Add PHP version validation before running Pint
- Show explicit errors when:
- Host PHP < project's required version
- No PHP binary is found