Coder Social home page Coder Social logo

Comments (12)

mavinoo avatar mavinoo commented on August 20, 2024 2

@lorvent v2.1.5

from laravelbatch.

mavinoo avatar mavinoo commented on August 20, 2024

hi
please config app.php

providers, aliases

from laravelbatch.

lorvent avatar lorvent commented on August 20, 2024

i just tried that but still it displays same error.

Deprecation Notice: Class Mavinoo\LaravelBatch\Batch located in vendor/mavinoo/laravel-batch/src\LaravelBatch.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0

from laravelbatch.

mavinoo avatar mavinoo commented on August 20, 2024

What is the Laravel version?

from laravelbatch.

mavinoo avatar mavinoo commented on August 20, 2024

please read issues: Deprecation notices for PSR-4 autoloading with correct paths?

from laravelbatch.

 avatar commented on August 20, 2024

Its something to do with class name not matching file name
Deprecation Notice: Class Mavinoo\LaravelBatch\Batch located in ./vendor/mavinoo/laravel-batch/src/LaravelBatch.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.

Renaming src/LaravelBatch.php to src/Batch.php solves the issue

from laravelbatch.

stemis avatar stemis commented on August 20, 2024

@mavinoo Your LaravelBatch.php file contains a class named Batch, this must be renamed to LaravelBatch or you must rename the file to Batch.php, so the that filename and the class it contains are the same

Composer is now checking these things and warning users so they can do something about it before moving to Composer v2.

from laravelbatch.

lorvent avatar lorvent commented on August 20, 2024

Can you please release a new version aswell?

from laravelbatch.

stemis avatar stemis commented on August 20, 2024

@lorvent the PR submitted only renames the class, but the references from other files to this class need to be renamed as well.

For example the Service provider still references the old Batch class

from laravelbatch.

lorvent avatar lorvent commented on August 20, 2024

oops, so it needs another PR.

from laravelbatch.

mavinoo avatar mavinoo commented on August 20, 2024

Fixed

from laravelbatch.

lorvent avatar lorvent commented on August 20, 2024

Glad to know,
is it ready for release now?

from laravelbatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.