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

Pluralizer class not autoloaded through Composer #1

Open
devkinetic opened this issue Nov 18, 2023 · 0 comments
Open

Pluralizer class not autoloaded through Composer #1

devkinetic opened this issue Nov 18, 2023 · 0 comments

Comments

@devkinetic
Copy link

I have tried to add this class to my project: composer require rachid/pluralizer:dev-main

Then use in a file:

use rachid\pluralizer\Pluralizer;

$text = Pluralizer::singularize($text);

This results in an error:

PHP Fatal error: Class 'rachid\pluralizer\Pluralizer' not found in ...

I then ran composer dump-autoload -o to further inspect. The reference in /vendor/composer/autoload_psr4.php exists.

'rachid/pluralizer\\' => array($vendorDir . '/rachid/pluralizer/src'),

When we look at /vendor/composer/autoload_classmap.php though, there is no reference to the Pluralizer class.

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

No branches or pull requests

1 participant