Comments (5)
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.
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.
@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.
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.
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)
- Division by zero in Probability\Distribution\Continuous\Continuous HOT 21
- Dealing with NANs HOT 3
- Integer Modulo n HOT 3
- Add vector, matrix and quaternion operations for 3d geometry HOT 1
- Could math-php support KPHP? HOT 1
- Truncated Mean Percentage HOT 5
- Incompatibility with Iterator and ArrayAccess interfaces HOT 1
- Quartiles calculation in Stats Descriptive HOT 1
- MiddlePayment For Loan HOT 2
- Kernel Density Estimation: Improved Sheather-Jones algorithm HOT 4
- Bug for the t-test? HOT 5
- Add row/column algebra methods to Matrix for Vector HOT 3
- Document additional Matrix Row Operations and add their Columnar counterparts HOT 5
- Implicit Behavior of ImmutableSet
- Add Moore-Penrose Inverse HOT 12
- Psalm does not understand `number` pseudo-type HOT 3
- Add a factor method for Polynomials HOT 4
- Repeated measures ANOVA HOT 1
- Question regarding Linear regression on cicular data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from math-php.