Git Product home page Git Product logo

Comments (2)

guilhermeblanco avatar guilhermeblanco commented on May 20, 2024

Answers:

  1. There're 2 because there're 2 rules being applied which failed at the same point.
    One is array property per class limit (First class collections), which enforces that if you have only 1 array as a property of class
    Second is instance property per class limit (Do not use multiple instances per object), which enforces that you use up to 5 instances of classes as properties per object.

  2. Nothing... it looks like a bug. It should only try to retrieve the property type IF it's a property of a class. It seems that because you haven't added a new scope yet (open bracket), it's being considered as a property of object, and not as an argument.
    I'll investigate and provide a fix today. =)

from phpcs-calisthenics-rules.

TomasVotruba avatar TomasVotruba commented on May 20, 2024

This is already fixed.

from phpcs-calisthenics-rules.

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.