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

Fix: Reduce visibility #719

Merged
merged 1 commit into from
Sep 5, 2023
Merged

Conversation

localheinz
Copy link
Member

@localheinz localheinz commented Sep 4, 2023

What is the reason for this PR?

  • reduces the visibility of a public method to private

πŸ’β€β™‚οΈ The method is only used internally and the containing class is marked as experimental.

Author's checklist

Summary of changes

Review checklist

  • All checks have passed
  • Changes are approved by maintainer

@localheinz localheinz added the bug Something isn't working label Sep 4, 2023
@localheinz localheinz self-assigned this Sep 4, 2023
Comment on lines -51 to -47
/**
* Get an array with extension that represent the default English
* functionality.
*/
Copy link
Member Author

Choose a reason for hiding this comment

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

Given that we reduce the visibility, the DocBlock becomes obsolete.

Copy link
Member

Choose a reason for hiding this comment

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

Isn't this method needed if people want to extend the container and also have the default extensions merged in?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, I am not sure - would be great to know if anyone even uses this method.

Here's what I am aiming for:

diff --git a/src/Faker/Container/Container.php b/src/Faker/Container/Container.php
index 9b361845..9460b17a 100644
--- a/src/Faker/Container/Container.php
+++ b/src/Faker/Container/Container.php
@@ -87,7 +87,7 @@ final class Container implements ContainerInterface
     {
         if (is_callable($definition)) {
             try {
-                return $definition();
+                return $definition($this);
             } catch (\Throwable $e) {
                 throw new ContainerException(
                     sprintf('Error while invoking callable for "%s"', $id),
diff --git a/src/Faker/Container/ContainerBuilder.php b/src/Faker/Container/ContainerBuilder.php
index 029d6f20..cc52edcb 100644
--- a/src/Faker/Container/ContainerBuilder.php
+++ b/src/Faker/Container/ContainerBuilder.php
@@ -51,14 +51,22 @@ final class ContainerBuilder
     private static function defaultExtensions(): array
     {
         return [
-            BarcodeExtension::class => Core\Barcode::class,
+            BarcodeExtension::class => static function (ContainerInterface $container): BarcodeExtension {
+                return new Core\Barcode($container->get(NumberExtension::class));
+            },
             BloodExtension::class => Core\Blood::class,
-            ColorExtension::class => Core\Color::class,
+            ColorExtension::class => static function (ContainerInterface $container): ColorExtension {
+                return new Core\Color($container->get(NumberExtension::class));
+            },
             DateTimeExtension::class => Core\DateTime::class,
             FileExtension::class => Core\File::class,
             NumberExtension::class => Core\Number::class,
-            VersionExtension::class => Core\Version::class,
-            UuidExtension::class => Core\Uuid::class,
+            VersionExtension::class => static function (ContainerInterface $container): VersionExtension {
+                return new Core\Version($container->get(NumberExtension::class));
+            },
+            UuidExtension::class => static function (ContainerInterface $container): UuidExtension {
+                return new Core\Uuid($container->get(NumberExtension::class));
+            },
         ];
     }
 
diff --git a/src/Faker/Core/Barcode.php b/src/Faker/Core/Barcode.php
index a85420be..4dc0d7d1 100644
--- a/src/Faker/Core/Barcode.php
+++ b/src/Faker/Core/Barcode.php
@@ -14,9 +14,9 @@ final class Barcode implements Extension\BarcodeExtension
 {
     private Extension\NumberExtension $numberExtension;
 
-    public function __construct(Extension\NumberExtension $numberExtension = null)
+    public function __construct(Extension\NumberExtension $numberExtension)
     {
-        $this->numberExtension = $numberExtension ?: new Number();
+        $this->numberExtension = $numberExtension;
     }
 
     private function ean(int $length = 13): string
diff --git a/src/Faker/Core/Color.php b/src/Faker/Core/Color.php
index bd948190..87a1b33a 100644
--- a/src/Faker/Core/Color.php
+++ b/src/Faker/Core/Color.php
@@ -54,9 +54,9 @@ final class Color implements Extension\ColorExtension
         'Turquoise', 'Violet', 'Wheat', 'White', 'WhiteSmoke', 'Yellow', 'YellowGreen',
     ];
 
-    public function __construct(Extension\NumberExtension $numberExtension = null)
+    public function __construct(Extension\NumberExtension $numberExtension)
     {
-        $this->numberExtension = $numberExtension ?: new Number();
+        $this->numberExtension = $numberExtension;
     }
 
     /**
diff --git a/src/Faker/Core/Uuid.php b/src/Faker/Core/Uuid.php
index d1db1b22..47ebb4a4 100644
--- a/src/Faker/Core/Uuid.php
+++ b/src/Faker/Core/Uuid.php
@@ -11,10 +11,10 @@ final class Uuid implements Extension\UuidExtension
 {
     private Extension\NumberExtension $numberExtension;
 
-    public function __construct(Extension\NumberExtension $numberExtension = null)
+    public function __construct(Extension\NumberExtension $numberExtension)
     {
 
-        $this->numberExtension = $numberExtension ?: new Number();
+        $this->numberExtension = $numberExtension;
     }
 
     public function uuid3(): string
diff --git a/src/Faker/Core/Version.php b/src/Faker/Core/Version.php
index 8863c480..e2de9c5e 100644
--- a/src/Faker/Core/Version.php
+++ b/src/Faker/Core/Version.php
@@ -18,10 +18,10 @@ final class Version implements Extension\VersionExtension
      */
     private array $semverCommonPreReleaseIdentifiers = ['alpha', 'beta', 'rc'];
 
-    public function __construct(Extension\NumberExtension $numberExtension = null)
+    public function __construct(Extension\NumberExtension $numberExtension)
     {
 
-        $this->numberExtension = $numberExtension ?: new  Number();
+        $this->numberExtension = $numberExtension;
     }
 
     /**
diff --git a/test/Faker/Core/ColorTest.php b/test/Faker/Core/ColorTest.php
index 13183c89..b06bf255 100644
--- a/test/Faker/Core/ColorTest.php
+++ b/test/Faker/Core/ColorTest.php
@@ -5,45 +5,46 @@ declare(strict_types=1);
 namespace Faker\Test\Core;
 
 use Faker\Core\Color;
+use Faker\Core\Number;
 use Faker\Test\TestCase;
 
 final class ColorTest extends TestCase
 {
     public function testHexColor(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         self::assertMatchesRegularExpression('/^#[a-f0-9]{6}$/i', $color->hexColor());
     }
 
     public function testSafeHexColor(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         self::assertMatchesRegularExpression('/^#[a-f0-9]{6}$/i', $color->safeHexColor());
     }
 
     public function testRgbColorAsArray(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         self::assertCount(3, $color->rgbColorAsArray());
     }
 
     public function testRgbColor(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         $regexp = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])';
         self::assertMatchesRegularExpression('/^' . $regexp . ',' . $regexp . ',' . $regexp . '$/i', $color->rgbColor());
     }
 
     public function testRgbCssColor(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         $regexp = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])';
         self::assertMatchesRegularExpression('/^rgb\(' . $regexp . ',' . $regexp . ',' . $regexp . '\)$/i', $color->rgbCssColor());
     }
 
     public function testRgbaCssColor(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         $regexp = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])';
         $regexpAlpha = '([01]?(\.\d+)?)';
         self::assertMatchesRegularExpression('/^rgba\(' . $regexp . ',' . $regexp . ',' . $regexp . ',' . $regexpAlpha . '\)$/i', $color->rgbaCssColor());
@@ -51,19 +52,19 @@ final class ColorTest extends TestCase
 
     public function testSafeColorName(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         self::assertMatchesRegularExpression('/^[\w]+$/', $color->safeColorName());
     }
 
     public function testColorName(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         self::assertMatchesRegularExpression('/^[\w]+$/', $color->colorName());
     }
 
     public function testHslColor(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         $regexp360 = '(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])';
         $regexp100 = '(?:100|[1-9]?[0-9])';
         self::assertMatchesRegularExpression('/^' . $regexp360 . ',' . $regexp100 . ',' . $regexp100 . '$/', $color->hslColor());
@@ -71,7 +72,7 @@ final class ColorTest extends TestCase
 
     public function testHslColorArray(): void
     {
-        $color = new Color();
+        $color = new Color(new Number());
         self::assertCount(3, $color->hslColorAsArray());
     }
 }
diff --git a/test/Faker/Core/UuidTest.php b/test/Faker/Core/UuidTest.php
index a0bedce0..03cae0b7 100644
--- a/test/Faker/Core/UuidTest.php
+++ b/test/Faker/Core/UuidTest.php
@@ -2,6 +2,7 @@
 
 namespace Faker\Test\Core;
 
+use Faker\Core\Number;
 use Faker\Core\Uuid;
 use Faker\Test\TestCase;
 
@@ -9,14 +10,14 @@ final class UuidTest extends TestCase
 {
     public function testUuidReturnsUuid(): void
     {
-        $instance = new Uuid();
+        $instance = new Uuid(new Number());
         $uuid = $instance->uuid3();
         self::assertTrue($this->isUuid($uuid));
     }
 
     public function testUuidExpectedSeed(): void
     {
-        $instance = new Uuid();
+        $instance = new Uuid(new Number());
 
         if (pack('L', 0x6162797A) == pack('N', 0x6162797A)) {
             self::markTestSkipped('Big Endian');

@bram-pkg bram-pkg merged commit 0f704c8 into FakerPHP:main Sep 5, 2023
12 checks passed
@localheinz localheinz deleted the fix/visibility branch September 5, 2023 17:51
@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
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants