From 73231b6209b5bfef8de0aa16938106e73cd52fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 4 Sep 2023 16:45:18 +0200 Subject: [PATCH] Fix: Remove unused method --- roave-bc-check.yaml | 2 ++ src/Faker/Container/Container.php | 8 -------- src/Faker/Container/ContainerInterface.php | 4 ---- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/roave-bc-check.yaml b/roave-bc-check.yaml index ec55cb0747..24ee17f2c8 100644 --- a/roave-bc-check.yaml +++ b/roave-bc-check.yaml @@ -19,3 +19,5 @@ parameters: - '#\[BC\] CHANGED: The number of required arguments for Faker\\Container\\ContainerBuilder\#add\(\) increased from 1 to 2#' - '#\[BC\] CHANGED: The parameter \$name of Faker\\Container\\ContainerBuilder\#add\(\) changed from string\|null to a non-contravariant string#' - '#\[BC\] CHANGED: The parameter \$value of Faker\\Container\\ContainerBuilder\#add\(\) changed from no type to a non-contravariant string#' + - '#\[BC\] REMOVED: Method Faker\\Container\\ContainerInterface\#getDefinitions\(\) was removed#' + - '#\[BC\] REMOVED: Method Faker\\Container\\Container\#getDefinitions\(\) was removed#' diff --git a/src/Faker/Container/Container.php b/src/Faker/Container/Container.php index 409a7406a0..4a79ea2272 100644 --- a/src/Faker/Container/Container.php +++ b/src/Faker/Container/Container.php @@ -134,12 +134,4 @@ public function has($id): bool return array_key_exists($id, $this->definitions); } - - /** - * Get the bindings between Extension interfaces and implementations. - */ - public function getDefinitions(): array - { - return $this->definitions; - } } diff --git a/src/Faker/Container/ContainerInterface.php b/src/Faker/Container/ContainerInterface.php index d34f4a8967..9e5237d341 100644 --- a/src/Faker/Container/ContainerInterface.php +++ b/src/Faker/Container/ContainerInterface.php @@ -6,8 +6,4 @@ interface ContainerInterface extends BaseContainerInterface { - /** - * Get the bindings between Extension interfaces and implementations. - */ - public function getDefinitions(): array; }