Skip to content

Commit 9ef53cb

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [DependencyInjection] remove static cache from `ServiceSubscriberTrait`
2 parents 0533519 + 834e57a commit 9ef53cb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Symfony/Contracts/Service/ServiceSubscriberTrait.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ trait ServiceSubscriberTrait
3030
*/
3131
public static function getSubscribedServices(): array
3232
{
33-
static $services;
34-
35-
if (null !== $services) {
36-
return $services;
37-
}
38-
3933
$services = method_exists(get_parent_class(self::class) ?: '', __FUNCTION__) ? parent::getSubscribedServices() : [];
4034

4135
foreach ((new \ReflectionClass(self::class))->getMethods() as $method) {

0 commit comments

Comments
 (0)