• Resolved xanderembold

    (@xanderembold)


    WooCommerce throws a fatal error when used with any other theme that uses a more up to date version of /vender/psr/container

    PSR Container has been updated for PHP 8 to 1.1.0 and throws the following fatal error when WooCommerce is installed

    Declaration of Illuminate\Container\Container::get(string $id) must be compatible with Psr\Container\ContainerInterface::get($id)

    To fix this, swap in v1.1.0 of PSR instead of the current 1.0.0 and then update:

    woocommerce/src/Container.php has function on line 106 to:
    public function has(string $id ): bool {

    After making these updates everything functions as normal.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.1 psr vendor directory error – must update to 1.1.0’ is closed to new replies.