Skip to content

[Bug]: This application requires a PHP version matching "^8.2.0" #498

@xgbnl

Description

@xgbnl

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".
Image

The above is my Laravel configuration.

Image

Mimimal Code Sample

Has anyone encountered this situation? How can it be resolved? Does the extension support custom paths?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions