Skip to content

Commit 67208f9

Browse files
authored
Fix: Remove unused method (#711)
1 parent 6c3a043 commit 67208f9

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

roave-bc-check.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ parameters:
1919
- '#\[BC\] CHANGED: The number of required arguments for Faker\\Container\\ContainerBuilder\#add\(\) increased from 1 to 2#'
2020
- '#\[BC\] CHANGED: The parameter \$name of Faker\\Container\\ContainerBuilder\#add\(\) changed from string\|null to a non-contravariant string#'
2121
- '#\[BC\] CHANGED: The parameter \$value of Faker\\Container\\ContainerBuilder\#add\(\) changed from no type to a non-contravariant string#'
22+
- '#\[BC\] REMOVED: Method Faker\\Container\\ContainerInterface\#getDefinitions\(\) was removed#'
23+
- '#\[BC\] REMOVED: Method Faker\\Container\\Container\#getDefinitions\(\) was removed#'

src/Faker/Container/Container.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,4 @@ public function has($id): bool
134134

135135
return array_key_exists($id, $this->definitions);
136136
}
137-
138-
/**
139-
* Get the bindings between Extension interfaces and implementations.
140-
*/
141-
public function getDefinitions(): array
142-
{
143-
return $this->definitions;
144-
}
145137
}

src/Faker/Container/ContainerInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66

77
interface ContainerInterface extends BaseContainerInterface
88
{
9-
/**
10-
* Get the bindings between Extension interfaces and implementations.
11-
*/
12-
public function getDefinitions(): array;
139
}

0 commit comments

Comments
 (0)