File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1616use Doctrine \Persistence \Mapping \RuntimeReflectionService ;
1717use Psr \Log \LoggerInterface ;
1818use Psr \Log \NullLogger ;
19+ use WeakMap ;
1920use Webfactory \Bundle \PolyglotBundle \Locale \DefaultLocaleProvider ;
2021
2122final class PolyglotListener
@@ -38,9 +39,9 @@ final class PolyglotListener
3839 private array $ translatedClasses = [];
3940
4041 /**
41- * @var \ WeakMap<object, true>
42+ * @var WeakMap<object, true>
4243 */
43- private \ WeakMap $ entitiesWithTranslatables ;
44+ private WeakMap $ entitiesWithTranslatables ;
4445
4546 /**
4647 * @var list<PersistentTranslatable>
@@ -52,12 +53,12 @@ public function __construct(
5253 private readonly LoggerInterface $ logger = null ?? new NullLogger (),
5354 private readonly RuntimeReflectionService $ reflectionService = new RuntimeReflectionService (),
5455 ) {
55- $ this ->entitiesWithTranslatables = new \ WeakMap ();
56+ $ this ->entitiesWithTranslatables = new WeakMap ();
5657 }
5758
5859 public function onClear (OnClearEventArgs $ args ): void
5960 {
60- $ this ->entitiesWithTranslatables = new \ WeakMap ();
61+ $ this ->entitiesWithTranslatables = new WeakMap ();
6162 }
6263
6364 public function postLoad (LifecycleEventArgs $ event ): void
You can’t perform that action at this time.
0 commit comments