Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d0843be

Browse filesBrowse files
committed
[DependencyInjection] remove static cache from ServiceSubscriberTrait
1 parent 5c29d51 commit d0843be
Copy full SHA for d0843be

File tree

1 file changed

+0
-6
lines changed
Filter options

1 file changed

+0
-6
lines changed

‎src/Symfony/Contracts/Service/ServiceSubscriberTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Contracts/Service/ServiceSubscriberTrait.php
-6Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.