Skip to content

Commit 0888bf3

Browse files
authored
Merge pull request #2771 from alanpoulain/merge-2.4
Merge 2.4
2 parents df70878 + f2f72d0 commit 0888bf3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ parameters:
6868
message: '#Method ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Util\\QueryBuilderHelper::mapJoinAliases() should return array<string, array<string>\|string> but returns array<int|string, mixed>\.#'
6969
path: %currentWorkingDirectory%/src/Bridge/Doctrine/Orm/Util/QueryBuilderHelper.php
7070
-
71-
message: "#Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component.+' and 'addRemovedBindingIds?' will always evaluate to false\\.#"
71+
message: "#Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component.+' and '(removeBindings|addRemovedBindingIds)' will always evaluate to false\\.#"
7272
path: %currentWorkingDirectory%/tests/Bridge/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php
7373
- "#Call to method PHPUnit\\\\Framework\\\\Assert::assertSame\\(\\) with array\\('(collection_context|item_context|subresource_context)'\\) and array<Symfony\\\\Component\\\\VarDumper\\\\Cloner\\\\Data>\\|bool\\|float\\|int\\|string\\|null will always evaluate to false\\.#"
7474
# https://github.com/doctrine/doctrine2/pull/7298/files

tests/Bridge/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,10 +869,10 @@ private function getPartialContainerBuilderProphecy()
869869

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

0 commit comments

Comments
 (0)