-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
Description
Extension Version
1.2.1
PHP Binary
Local PHP
Operating System
Linux
What happened?
My project runs on a remote Linux system where there are multiple PHP versions. The current system default version is PHP 7.2.33, but my project requires version 8.2. Therefore, I have configured the specified PHP version path in the remote VS Code settings.json as follows:
"php.validate.executablePath": "/www/server/php/82/bin/php"
However, why is the Laravel extension unable to recognize this path and instead recognizes the default 7.2.33? Whenever I call any functionality in the Laravel framework, I get the following error:
2025-11-22 03:10:49.403 [error] Pint Error:
Box Requirements Checker
========================
> Using PHP 7.2.33
> PHP is using the following php.ini file:
/www/server/php/72/etc/php-cli.ini
> Checking Box requirements:
E.....
[ERROR] Your system is not ready to run the application.
Fix the following mandatory requirements:
=========================================
* This application requires a PHP version matching "^8.2.0".
The above is my Laravel configuration.
Mimimal Code Sample
Has anyone encountered this situation? How can it be resolved? Does the extension support custom paths?