idleberg / php-wordpress-vite-assets

Injects assets from a Vite manifest to the Wordpress head, supports themes and plugins
https://packagist.org/packages/idleberg/wordpress-vite-assets
MIT License
130 stars 12 forks source link

Php 7.4 / 8.0 compatibility ? #5

Closed gmirmand closed 1 year ago

gmirmand commented 1 year ago

Hi ! I get the following error

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.21. in /var/www/html//vendor/composer/platform_check.php on line 24

Is there any way to get php 7.4 and/or 8.0 compatibility?

idleberg commented 1 year ago

I'm not sure this error is related to this package (see its PHP dependency). It sounds like you're using PHP v7.4.21 while some dependency requires v8.1 or higher.

gmirmand commented 1 year ago

Yes, my bad it was my fault Just had to put

composer.json

    "config": {
        "platform": {
            "php": "7.4.0"
        }
    }

Sorry for that, ty !