Skip to content

Commit 00a13be

Browse files
Merge branch '7.4' into 8.0
* 7.4: [Serializer] Fix mixed-typed constructor parameters overriding getter-inferred type Fix tests [Cache] Ensure compatibility with Relay extension 0.21.0 [Mime][TwigBridge] Fix merge conflict resolution [Ldap] Make the Adapter resettable [Serializer] Remove needless line in changelog [MonologBridge] Fix ConsoleHandler losing output after nested command terminates [Cache] Fix tests [EventDispatcher] Fix memory leak in TraceableEventDispatcher for long-running processes [TwigBridge][Mime] Add missing tests [TwigBridge] Refactor image method to use DataPart content ID [Cache] Fix undefined property access [Console] Fix performance regression in OutputFormatter for ASCII content [Serializer] Fix can*() prefix support in GetSetMethodNormalizer [Cache] Fix Psr16Cache::getMultiple() returning ValueWrapper with TagAwareAdapter Configure deprecation triggers
2 parents ff9a930 + 6f73fdf commit 00a13be

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

DependencyInjection/Compiler/RegisterLdapLocatorPass.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ public function process(ContainerBuilder $container): void
3030
$definition = $container->setDefinition('security.ldap_locator', new Definition(ServiceLocator::class));
3131

3232
$locators = [];
33-
foreach ($container->findTaggedServiceIds('ldap') as $serviceId => $tags) {
34-
$locators[$serviceId] = new ServiceClosureArgument(new Reference($serviceId));
33+
foreach ($container->findTaggedServiceIds('ldap') as $id => $tags) {
34+
$locators[$id] = new ServiceClosureArgument(new Reference($id));
35+
$container->getDefinition($id)->addTag('kernel.reset', ['method' => 'reset', 'on_invalid' => 'ignore']);
3536
}
3637

3738
$definition->addArgument($locators);

phpunit.xml.dist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
@@ -20,6 +20,11 @@
2020
</testsuites>
2121

2222
<source ignoreSuppressionOfDeprecations="true">
23+
<deprecationTrigger>
24+
<function>trigger_deprecation</function>
25+
<method>Doctrine\Deprecations\Deprecation::trigger</method>
26+
<method>Doctrine\Deprecations\Deprecation::triggerIfCalledFromOutside</method>
27+
</deprecationTrigger>
2328
<include>
2429
<directory>./</directory>
2530
</include>

0 commit comments

Comments
 (0)