Skip to content

PHP version mismatch error when running slic use #215

@cliffordp

Description

@cliffordp

Image

Your .env.slic.local file's PHP version is different than either your slic.json or composer.json file. This will cause your project to rebuild the PHP containers any time you type slic use.

I'm guessing the real issue is comparing 8.2 to the actual 8.2.28
(I'm unsure if related to #147, but I do not recall seeing this error message in prior versions.)

===

Here's what I had when that error happened:

    "require-dev": {
        "php": "^8.2",

SLIC_PHP_VERSION=8.2

===

So I tried changing both to ^8.2 and then both to 8.2 but got the same error both times. I ran slic restart then slic use in between each change.

Image

===

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions