Giter Site home page Giter Site logo

Comments (3)

b-durand avatar b-durand commented on May 3, 2024

I have almost the same use case: vendor/foo.class.php for the class Foo_Service.

Psr0Fixer is more checker than a fixer IMHO. We could rename the file with the logic of the classname. The problem is to broke include instruction in others files...

from php-cs-fixer.

cordoval avatar cordoval commented on May 3, 2024

PSR0 demands the class name to be the same as the file name. It is also the default level or rule included when running without levels or rules by hand. If you need a warning you would first run the command with --dry-run, it is definitely the fix to rename the class according to the filename or viceversa. So it is not the fault of the tool, if you want a warning that is done in --dry-run again.
cc/ @fabpot

Please if you feel satisfied close the issue.

from php-cs-fixer.

keradus avatar keradus commented on May 3, 2024

No discussion for 2 years and actually everything that can be say was said. Closing.

from php-cs-fixer.

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.