vercel-community / php

🐘 PHP Runtime for ▲ Vercel Serverless Functions (support 7.4-8.3)

Home Page:https://php.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSR extension should not be included by default

WilliamBlais opened this issue · comments

Bug report

  • Version: 4.0.0

Description

The psr extension is incompatible with symfony see symfony/symfony#40870.

The extension author himself requests that the extension be disabled by default, see jbboehr/php-psr#88.

Is it possible to disable it without rebuilding another lib in libphp?

Thanks!

Hey, you're right. I will disable it completely.

commented

Any update of this issue? I deployed a Laravel 9 project to vercel and got:

Fatal error: Declaration of Illuminate\Container\Container::get(string $id) must be compatible with Psr\Container\ContainerInterface::get($id) in /var/task/user/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 702

Any update of this issue? I deployed a Laravel 9 project to vercel and got:

Fatal error: Declaration of Illuminate\Container\Container::get(string $id) must be compatible with Psr\Container\ContainerInterface::get($id) in /var/task/user/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 702

yes i also have the same problem

  • PHP v8.1.1
  • Laravel v9.0.2

Any update of this issue? I deployed a Laravel 9 project to vercel and got:

Fatal error: Declaration of Illuminate\Container\Container::get(string $id) must be compatible with Psr\Container\ContainerInterface::get($id) in /var/task/user/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 702

same issue here. any way to disable the PSR extension?

Hi. Done. Can you please redeploy your apps?

@sunxyw @HasanMu @1isten @WilliamBlais

Thanks for your work!
Works great on Laravel 9!

commented

@f3l1x Thank you!