From 342bad9f1314084920b685ca4679f2104a853e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 5 Sep 2023 20:13:44 +0200 Subject: [PATCH] Fix: Remove unused method (#736) --- roave-bc-check.yaml | 1 + src/Faker/Container/ContainerBuilder.php | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/roave-bc-check.yaml b/roave-bc-check.yaml index f7e2d1409d..b3ff163801 100644 --- a/roave-bc-check.yaml +++ b/roave-bc-check.yaml @@ -38,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::getDefault\(\) 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#' diff --git a/src/Faker/Container/ContainerBuilder.php b/src/Faker/Container/ContainerBuilder.php index d6f210799a..f2545e944b 100644 --- a/src/Faker/Container/ContainerBuilder.php +++ b/src/Faker/Container/ContainerBuilder.php @@ -65,9 +65,4 @@ public static function withDefaultExtensions(): self return $instance; } - - public static function getDefault(): ContainerInterface - { - return self::withDefaultExtensions()->build(); - } }