Skip to content

Commit

Permalink
Fix: Reduce visibility (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored Sep 5, 2023
1 parent bf42220 commit 0f704c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions roave-bc-check.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
parameters:
ignoreErrors:
- '#\[BC\] CHANGED: Class Faker\\Core\\Coordinates became final#'
- '#\[BC\] CHANGED: Method defaultExtensions\(\) of class Faker\\Container\\ContainerBuilder visibility reduced from public to private#'
- '#\[BC\] CHANGED: Property Faker\\Factory::\$defaultProviders changed default value#'
- '#\[BC\] CHANGED: Property Faker\\Provider\\[a-z_A-Z]+\\[a-zA-Z]+::\$[1-9a-zA-Z]+ changed default value#'
- '#\[BC\] CHANGED: Property Faker\\Provider\\[a-zA-Z]+::\$[1-9a-zA-Z]+ changed default value#'
Expand Down Expand Up @@ -37,6 +38,7 @@ parameters:
- '#\[BC\] REMOVED: Class Faker\\Extension\\ContainerException has been deleted#'
- '#\[BC\] REMOVED: Class Faker\\Extension\\NotInContainerException has been deleted#'
- '#\[BC\] REMOVED: Method Faker\\Container\\Container\#getDefinitions\(\) was removed#'
- '#\[BC\] REMOVED: Method Faker\\Container\\ContainerBuilder\::defaultExtensions\(\) was removed#'
- '#\[BC\] REMOVED: Method Faker\\Container\\ContainerInterface\#getDefinitions\(\) was removed#'
- '#\[BC\] REMOVED: Method Faker\\Core\\DateTime\#getDefaultTimezone\(\) was removed#'
- '#\[BC\] REMOVED: Method Faker\\Core\\DateTime\#getTimestamp\(\) was removed#'
Expand Down
6 changes: 1 addition & 5 deletions src/Faker/Container/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ public function build(): ContainerInterface
return new Container($this->definitions);
}

/**
* Get an array with extension that represent the default English
* functionality.
*/
public static function defaultExtensions(): array
private static function defaultExtensions(): array
{
return [
Extension\BarcodeExtension::class => Core\Barcode::class,
Expand Down

0 comments on commit 0f704c8

Please sign in to comment.