Skip to content

Commit

Permalink
Rename ContainerBuilder::addRemovedBindingId to ContainerBuilder::rem…
Browse files Browse the repository at this point in the history
…oveBindings
  • Loading branch information
teohhanhui committed Apr 20, 2019
1 parent 9222ded commit bec44e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,10 +845,10 @@ private function getPartialContainerBuilderProphecy()

// irrelevant, but to prevent errors
// https://github.com/symfony/symfony/pull/29944
if (method_exists(ContainerBuilder::class, 'addRemovedBindingId')) {
$containerBuilderProphecy->addRemovedBindingId(Argument::type('string'))->will(function () {});
if (method_exists(ContainerBuilder::class, 'removeBindings')) {
$containerBuilderProphecy->removeBindings(Argument::type('string'))->will(function () {});
} elseif (method_exists(ContainerBuilder::class, 'addRemovedBindingIds')) {
// https://github.com/symfony/symfony/pull/31173
// remove this once https://github.com/symfony/symfony/pull/31173 is released
$containerBuilderProphecy->addRemovedBindingIds(Argument::type('string'))->will(function () {});
}

Expand Down

0 comments on commit bec44e1

Please sign in to comment.