Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Issue with very outdated PSR\Container dependency #3615

Closed
1 task done
junaidbhura opened this issue Aug 25, 2023 · 2 comments · Fixed by #3621
Closed
1 task done

BUG: Issue with very outdated PSR\Container dependency #3615

junaidbhura opened this issue Aug 25, 2023 · 2 comments · Fixed by #3621
Assignees
Labels
bug Something isn't working
Milestone

Comments

@junaidbhura
Copy link

Describe the bug

I get the following error when trying to use ElasticPress with some custom code which uses a more recent version of Psr\Container

...
must be compatible with Psr\Container\ContainerInterface::get($id)
...

Steps to Reproduce

  1. Include psr/container:1.1 or greater into your project using Composer
  2. Enable the ElasticPress plugin
  3. You will see a fatal error

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress and ElasticPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@junaidbhura junaidbhura added the bug Something isn't working label Aug 25, 2023
@felipeelia
Copy link
Member

To avoid problems like this, we should probably wrap our dependencies using something like https://github.com/BrianHenryIE/strauss

@anjulahettige anjulahettige added this to the 4.7.1 milestone Aug 29, 2023
@felipeelia
Copy link
Member

Although I still think we should implement Strauss, I'm having a hard time reproducing the problem here. @junaidbhura do you mind sharing the full error message, please? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants