Use more strict parameter type in methods `toOrdinal()` and `normalize()` of `NumericHelper`
Open
Nobody has claimed this yet.
type:enhancement
- Dominant language
- PHP
- Stars
- 49
- Forks
- 18
- Avg merge
- 49m
- Merged PRs (30d)
- 1
Description
This allow remove check type into this methods.
NumericHelper::toOrdinal(float|int|string $value);
NumericHelper::normalize(bool|float|int|string $value);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the NumericHelper::toOrdinal() and NumericHelper::normalize() entry points named in the issue, and inspect their current type checks. Update the signatures as specified, remove the redundant checks, and run the existing project tests to confirm current behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100