Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Reuse NumberExtension #715

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

localheinz
Copy link
Member

@localheinz localheinz commented Sep 4, 2023

What is the reason for this PR?

  • adjusts existing Extensions to reuse the NumberExtension

Somewhat related to #694.

πŸ’β€β™‚οΈ If we want to provide a path towards using Random\Randomizer in the distant future, I believe it would be best to centralize the source of randomness.

This could be one step.

Author's checklist

Summary of changes

Review checklist

  • All checks have passed
  • Changes are approved by maintainer

@localheinz localheinz added the enhancement New feature or request label Sep 4, 2023
@localheinz localheinz self-assigned this Sep 4, 2023

class Coordinates implements Extension
class Coordinates implements Extension\Extension
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class should probably be experimental and final, too.

@localheinz localheinz marked this pull request as ready for review September 4, 2023 15:56
@localheinz localheinz marked this pull request as draft September 4, 2023 15:56
@localheinz localheinz marked this pull request as ready for review September 4, 2023 15:59
@bram-pkg bram-pkg merged commit c48baf5 into FakerPHP:main Sep 4, 2023
12 checks passed
@localheinz localheinz deleted the feature/number branch September 4, 2023 16:48
@localheinz
Copy link
Member Author

Thank you, @bram-pkg!

renovate bot referenced this pull request in RadioRoster/backend Jan 7, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fakerphp/faker](https://togithub.com/FakerPHP/Faker) | `1.23.0` ->
`1.23.1` |
[![age](https://developer.mend.io/api/mc/badges/age/packagist/fakerphp%2ffaker/1.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/fakerphp%2ffaker/1.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/fakerphp%2ffaker/1.23.0/1.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/fakerphp%2ffaker/1.23.0/1.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>FakerPHP/Faker (fakerphp/faker)</summary>

###
[`v1.23.1`](https://togithub.com/FakerPHP/Faker/releases/tag/v1.23.1)

[Compare
Source](https://togithub.com/FakerPHP/Faker/compare/v1.23.0...v1.23.1)

#### What's Changed

- fix typos: "assymetric" -> asymmetric by
[@&#8203;ivastly](https://togithub.com/ivastly) in
[https://github.com/FakerPHP/Faker/pull/660](https://togithub.com/FakerPHP/Faker/pull/660)
- Fix: lv_LV postcode format by
[@&#8203;edgarsn](https://togithub.com/edgarsn) in
[https://github.com/FakerPHP/Faker/pull/661](https://togithub.com/FakerPHP/Faker/pull/661)
- composer(deps): bump vimeo/psalm from 5.12.0 to 5.13.1 in
/vendor-bin/psalm by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/669](https://togithub.com/FakerPHP/Faker/pull/669)
- composer(deps): bump rector/rector from 0.17.0 to 0.17.2 in
/vendor-bin/rector by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/667](https://togithub.com/FakerPHP/Faker/pull/667)
- composer(deps): bump phpstan/phpstan from 1.10.15 to 1.10.22 in
/vendor-bin/phpstan by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/666](https://togithub.com/FakerPHP/Faker/pull/666)
- composer(deps): bump friendsofphp/php-cs-fixer from 3.17.0 to 3.20.0
in /vendor-bin/php-cs-fixer by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/668](https://togithub.com/FakerPHP/Faker/pull/668)
- Add `$format` to `image` DocBlock by
[@&#8203;vintagesucks](https://togithub.com/vintagesucks) in
[https://github.com/FakerPHP/Faker/pull/670](https://togithub.com/FakerPHP/Faker/pull/670)
- Fix: lv_LV generating invalid personal identity numbers by
[@&#8203;edgarsn](https://togithub.com/edgarsn) in
[https://github.com/FakerPHP/Faker/pull/663](https://togithub.com/FakerPHP/Faker/pull/663)
- Fix for polish street names + more polish TLDs by
[@&#8203;tomaszklim](https://togithub.com/tomaszklim) in
[https://github.com/FakerPHP/Faker/pull/664](https://togithub.com/FakerPHP/Faker/pull/664)
- Fix psalm baseline in .gitattributes by
[@&#8203;VincentLanglet](https://togithub.com/VincentLanglet) in
[https://github.com/FakerPHP/Faker/pull/674](https://togithub.com/FakerPHP/Faker/pull/674)
- composer(deps): bump rector/rector from 0.17.2 to 0.17.7 in
/vendor-bin/rector by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/676](https://togithub.com/FakerPHP/Faker/pull/676)
- composer(deps): bump phpstan/phpstan from 1.10.22 to 1.10.26 in
/vendor-bin/phpstan by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/677](https://togithub.com/FakerPHP/Faker/pull/677)
- composer(deps): bump friendsofphp/php-cs-fixer from 3.20.0 to 3.22.0
in /vendor-bin/php-cs-fixer by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/679](https://togithub.com/FakerPHP/Faker/pull/679)
- composer(deps): bump vimeo/psalm from 5.13.1 to 5.14.1 in
/vendor-bin/psalm by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/678](https://togithub.com/FakerPHP/Faker/pull/678)
- chore: ensure php 8.3 compatibility by
[@&#8203;Chris53897](https://togithub.com/Chris53897) in
[https://github.com/FakerPHP/Faker/pull/684](https://togithub.com/FakerPHP/Faker/pull/684)
- Remove invalid postcode pattern for France by
[@&#8203;ker0x](https://togithub.com/ker0x) in
[https://github.com/FakerPHP/Faker/pull/683](https://togithub.com/FakerPHP/Faker/pull/683)
- Fix: Allow tests to fail on PHP 8.3 by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/693](https://togithub.com/FakerPHP/Faker/pull/693)
- Fix: Test does not perform any assertions by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/695](https://togithub.com/FakerPHP/Faker/pull/695)
- Fix: Operator by [@&#8203;localheinz](https://togithub.com/localheinz)
in
[https://github.com/FakerPHP/Faker/pull/696](https://togithub.com/FakerPHP/Faker/pull/696)
- Fix: Use boolean expressions by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/697](https://togithub.com/FakerPHP/Faker/pull/697)
- composer(deps): bump rector/rector from 0.17.7 to 0.18.1 in
/vendor-bin/rector by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/688](https://togithub.com/FakerPHP/Faker/pull/688)
- composer(deps): bump phpstan/phpstan from 1.10.26 to 1.10.32 in
/vendor-bin/phpstan by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/689](https://togithub.com/FakerPHP/Faker/pull/689)
- composer(deps): bump vimeo/psalm from 5.14.1 to 5.15.0 in
/vendor-bin/psalm by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/687](https://togithub.com/FakerPHP/Faker/pull/687)
- composer(deps): bump phpstan/phpstan-deprecation-rules from 1.1.3 to
1.1.4 in /vendor-bin/phpstan by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/690](https://togithub.com/FakerPHP/Faker/pull/690)
- composer(deps): bump friendsofphp/php-cs-fixer from 3.22.0 to 3.25.0
in /vendor-bin/php-cs-fixer by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/686](https://togithub.com/FakerPHP/Faker/pull/686)
- Fix: Require to pass name to `ContainerBuilder::add()` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/702](https://togithub.com/FakerPHP/Faker/pull/702)
- Enhancement: Run tests in random order by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/701](https://togithub.com/FakerPHP/Faker/pull/701)
- Fix: Add property type declarations by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/699](https://togithub.com/FakerPHP/Faker/pull/699)
- Fix: Enable and configure `type_declaration_spaces` instead of
deprecated `function_typehint_space` fixer by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/698](https://togithub.com/FakerPHP/Faker/pull/698)
- composer(deps): bump phpstan/phpstan from 1.10.32 to 1.10.33 in
/vendor-bin/phpstan by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/704](https://togithub.com/FakerPHP/Faker/pull/704)
- composer(deps): bump friendsofphp/php-cs-fixer from 3.25.0 to 3.25.1
in /vendor-bin/php-cs-fixer by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/705](https://togithub.com/FakerPHP/Faker/pull/705)
- github-actions(deps): bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/FakerPHP/Faker/pull/706](https://togithub.com/FakerPHP/Faker/pull/706)
- Fix: Switch order of parameters by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/703](https://togithub.com/FakerPHP/Faker/pull/703)
- Fix: Remove unused method by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/711](https://togithub.com/FakerPHP/Faker/pull/711)
- Fix: Rename parameter by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/707](https://togithub.com/FakerPHP/Faker/pull/707)
- Fix: Add parameter type declaration by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/710](https://togithub.com/FakerPHP/Faker/pull/710)
- Fix: Order by [@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/712](https://togithub.com/FakerPHP/Faker/pull/712)
- Enhancement: Reuse `NumberExtension` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/715](https://togithub.com/FakerPHP/Faker/pull/715)
- Fix: Methods are instance methods by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/708](https://togithub.com/FakerPHP/Faker/pull/708)
- Fix: Add property type declarations by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/713](https://togithub.com/FakerPHP/Faker/pull/713)
- Fix: Reduce visibility by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/714](https://togithub.com/FakerPHP/Faker/pull/714)
- Fix: Do not memoize invalid service by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/709](https://togithub.com/FakerPHP/Faker/pull/709)
- Fix: Consistently describe experimental status by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/717](https://togithub.com/FakerPHP/Faker/pull/717)
- Fix: Mark classes as experimental by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/716](https://togithub.com/FakerPHP/Faker/pull/716)
- Fix: Mark class as `final` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/718](https://togithub.com/FakerPHP/Faker/pull/718)
- Fix: Return string by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/726](https://togithub.com/FakerPHP/Faker/pull/726)
- Fix: Order by [@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/722](https://togithub.com/FakerPHP/Faker/pull/722)
- Fix: Avoid unnecessary imports by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/721](https://togithub.com/FakerPHP/Faker/pull/721)
- Enhancement: Enable `self_static_accessor` fixer by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/728](https://togithub.com/FakerPHP/Faker/pull/728)
- Fix: Cache for `friendsofphp/php-cs-fixer` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/729](https://togithub.com/FakerPHP/Faker/pull/729)
- Fix: Add parameter type declarations by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/724](https://togithub.com/FakerPHP/Faker/pull/724)
- Fix: Add tests for `Container` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/727](https://togithub.com/FakerPHP/Faker/pull/727)
- Fix: Simplify by [@&#8203;localheinz](https://togithub.com/localheinz)
in
[https://github.com/FakerPHP/Faker/pull/720](https://togithub.com/FakerPHP/Faker/pull/720)
- updated polish license plates by
[@&#8203;scybulski](https://togithub.com/scybulski) in
[https://github.com/FakerPHP/Faker/pull/685](https://togithub.com/FakerPHP/Faker/pull/685)
- Fix: Update `CHANGELOG.md` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/734](https://togithub.com/FakerPHP/Faker/pull/734)
- Fix: Avoid useless tests for `ContainerBuilder` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/730](https://togithub.com/FakerPHP/Faker/pull/730)
- Fix: Rename parameter by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/731](https://togithub.com/FakerPHP/Faker/pull/731)
- Add changelog mention in review checklist by
[@&#8203;bram-pkg](https://togithub.com/bram-pkg) in
[https://github.com/FakerPHP/Faker/pull/735](https://togithub.com/FakerPHP/Faker/pull/735)
- Enhancement: Allow creating `ContainerBuilder` with definitions for
default extensions by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/732](https://togithub.com/FakerPHP/Faker/pull/732)
- Fix: Reduce visibility by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/719](https://togithub.com/FakerPHP/Faker/pull/719)
- Fix: Remove unused method by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/736](https://togithub.com/FakerPHP/Faker/pull/736)
- Enhancement: Add `SECURITY.md` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/739](https://togithub.com/FakerPHP/Faker/pull/739)
- Fix: Do not use `static` in callables by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/785](https://togithub.com/FakerPHP/Faker/pull/785)
- Fixed incorrect female name among male names
([#&#8203;794](https://togithub.com/FakerPHP/Faker/issues/794)) by
[@&#8203;pimjansen](https://togithub.com/pimjansen) in
[https://github.com/FakerPHP/Faker/pull/795](https://togithub.com/FakerPHP/Faker/pull/795)
- Removed suppressed State from it_IT by
[@&#8203;BoGnY](https://togithub.com/BoGnY) in
[https://github.com/FakerPHP/Faker/pull/802](https://togithub.com/FakerPHP/Faker/pull/802)
- Update Address.php to fix country name errors by
[@&#8203;supgeek-rod](https://togithub.com/supgeek-rod) in
[https://github.com/FakerPHP/Faker/pull/809](https://togithub.com/FakerPHP/Faker/pull/809)
- fix [#&#8203;832](https://togithub.com/FakerPHP/Faker/issues/832) by
[@&#8203;gam6itko](https://togithub.com/gam6itko) in
[https://github.com/FakerPHP/Faker/pull/836](https://togithub.com/FakerPHP/Faker/pull/836)
- Fix: Do not use deprecated `MT_RAND_PHP` constant on PHP 8.3 by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/844](https://togithub.com/FakerPHP/Faker/pull/844)
- Enhancement: Prepare release for `1.23.1` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/788](https://togithub.com/FakerPHP/Faker/pull/788)
- Fix: Remove branch alias for `1.23` by
[@&#8203;localheinz](https://togithub.com/localheinz) in
[https://github.com/FakerPHP/Faker/pull/843](https://togithub.com/FakerPHP/Faker/pull/843)

#### New Contributors

- [@&#8203;ivastly](https://togithub.com/ivastly) made their first
contribution in
[https://github.com/FakerPHP/Faker/pull/660](https://togithub.com/FakerPHP/Faker/pull/660)
- [@&#8203;edgarsn](https://togithub.com/edgarsn) made their first
contribution in
[https://github.com/FakerPHP/Faker/pull/661](https://togithub.com/FakerPHP/Faker/pull/661)
- [@&#8203;vintagesucks](https://togithub.com/vintagesucks) made their
first contribution in
[https://github.com/FakerPHP/Faker/pull/670](https://togithub.com/FakerPHP/Faker/pull/670)
- [@&#8203;tomaszklim](https://togithub.com/tomaszklim) made their first
contribution in
[https://github.com/FakerPHP/Faker/pull/664](https://togithub.com/FakerPHP/Faker/pull/664)
- [@&#8203;VincentLanglet](https://togithub.com/VincentLanglet) made
their first contribution in
[https://github.com/FakerPHP/Faker/pull/674](https://togithub.com/FakerPHP/Faker/pull/674)
- [@&#8203;Chris53897](https://togithub.com/Chris53897) made their first
contribution in
[https://github.com/FakerPHP/Faker/pull/684](https://togithub.com/FakerPHP/Faker/pull/684)
- [@&#8203;BoGnY](https://togithub.com/BoGnY) made their first
contribution in
[https://github.com/FakerPHP/Faker/pull/802](https://togithub.com/FakerPHP/Faker/pull/802)
- [@&#8203;supgeek-rod](https://togithub.com/supgeek-rod) made their
first contribution in
[https://github.com/FakerPHP/Faker/pull/809](https://togithub.com/FakerPHP/Faker/pull/809)
- [@&#8203;gam6itko](https://togithub.com/gam6itko) made their first
contribution in
[https://github.com/FakerPHP/Faker/pull/836](https://togithub.com/FakerPHP/Faker/pull/836)

**Full Changelog**:
FakerPHP/Faker@v1.23.0...v1.23.1

</details>

---

### Configuration

πŸ“… **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

β™» **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

πŸ”• **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/RadioRoster/backend).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants