10000 [DependencyInjection] remove static cache from `ServiceSubscriberTrait` · symfony/symfony@d0843be · GitHub
[go: up one dir, main page]

Skip to content

Commit d0843be

Browse files
committed
[DependencyInjection] remove static cache from ServiceSubscriberTrait
1 parent 5c29d51 commit d0843be

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
@@ -29,12 +29,6 @@ trait ServiceSubscriberTrait
2929
*/
3030
public static function getSubscribedServices(): array
3131
{
32-
static $services;
33-
34-
if (null !== $services) {
35-
return $services;
36-
}
37-
3832
$services = method_exists(get_parent_class(self::class) ?: '', __FUNCTION__) ? parent::getSubscribedServices() : [];
3933

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

0 commit comments

Comments
 (0)
0