Skip to content

AsciiSluger requires symfony/translation-contracts #60351

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

Closed
4d4ch4u32 opened this issue May 5, 2025 · 2 comments
Closed

AsciiSluger requires symfony/translation-contracts #60351

4d4ch4u32 opened this issue May 5, 2025 · 2 comments

Comments

@4d4ch4u32
Copy link

Symfony version(s) affected

7.2.6

Description

You cannot use the "Symfony\Component\String\Slugger\AsciiSlugger" as the "symfony/translation-contracts" package is not insta  
  lled. Try running "composer require symfony/translation-contracts".

How to reproduce

What I did:

  • I use AsciiSlugger in my code.
  • Ran composer require symfony/translation-contracts (package is installed).
  • Error persists even after reinstalling and rebuilding (composer install, clearing cache, rebuilding container).

Installed package:

symfony/translation-contracts                  3.5.1              Generic abstractions related to translation

Possible Solution

No response

Additional Context

No response

@xabbuh
Copy link
Member

xabbuh commented May 5, 2025

Can you create a small example application that allows to reproduce your issue?

@4d4ch4u32
Copy link
Author

Not required - because my Phpstorm has automatically added use _PHPStan_ea7072c0a\Symfony\Component\String\Slugger\AsciiSlugger; as namespace instead of use Symfony\Component\String\Slugger\AsciiSlugger; 🤦‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants