Giter Site home page Giter Site logo

Comments (5)

markrogoyski avatar markrogoyski commented on May 25, 2024

Hi @aboks,

Thank you for your continued interest in improving MathPHP.

At some point in the past I remember number being a valid PHPDoc pseudo type, but I can't seem to find any documentation to back that up. I'll go through the library and clean up the @param annotations and replace number with more accurate union types.

Thanks for bringing this up. I'll let you know when I've updated the type annotations.

Mark

from math-php.

markrogoyski avatar markrogoyski commented on May 25, 2024

Hi @aboks,

This has been fixed in the latest version v2.7.0. I've changed the number param annotations to more specific types. Thanks for bringing this to my attention.

If you find any other issues with incorrect types, don't hesitate to create a new issue to request fixes.

Thanks again for your interest in improving MathPHP!
Mark

from math-php.

aboks avatar aboks commented on May 25, 2024

@markrogoyski I noticed that in v2.8.0 some of the the number parameter annotations have returned, I guess due to #465. Would it be possible to also convert these to a more specific union type that Psalm understands?

from math-php.

markrogoyski avatar markrogoyski commented on May 25, 2024

Hi @aboks,

Thanks for your continued interest in MathPHP.

Sorry about the static analysis regression. I think we can get this fixed pretty quickly. Can you open a new issue, and in that, post what version of Psalm you are using and what command/configuration you use to run it, and a sample output of the error? That will be helpful.

Also, since MathPHP now runs PHPStan fully passing in CI, it may be worth considering also adding Psalm as well. It should not be as much of a lift to get Psalm fully passing now that PHPStan is passing. I'll work on getting your immediate number issue first, but long term, adding Psalm to the CI run might be something I also look into as a followup.

Thanks,
Mark

from math-php.

aboks avatar aboks commented on May 25, 2024

Hi @markrogoyski, thanks for your quick reply and being an awesome maintainer in general! I've created #470 as a followup, with a link to a GitHub project where you can easily reproduce the problem.

from math-php.

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.