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

PSR-4 issue with Zorb\Promocodes\Promocode\Promocode class #98

Open
piotrknapik opened this issue Sep 25, 2022 · 1 comment
Open

PSR-4 issue with Zorb\Promocodes\Promocode\Promocode class #98

piotrknapik opened this issue Sep 25, 2022 · 1 comment

Comments

@piotrknapik
Copy link

I'm getting this one from composer:

Class Zorb\Promocodes\Promocode\Promocode located in ./vendor/zgabievi/laravel-promocodes/src/Models/Promocode.php does not comply with psr-4 autoloading standard. Skipping.

@piotrknapik
Copy link
Author

For me adding a line in composer.json's autoload helped:

    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Seeders\\": "database/seeds/",
            "Database\\Factories\\": "database/factories/",
            "Zorb\\Promocodes\\Promocode\\": "vendor/zgabievi/laravel-promocodes/src/Models/"
        }
    },

...still I think lib should have it straight with PSR-4

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