Your project should not use invalid return types 2
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_return_typehint
- * @return EventDispatcherInterface
- */
- final public function getEventDispatcher(): EventDispatcherInterface
- {
- if (isset($this->handledEntries[EventDispatcherInterface::class])) {
- return $this->handledEntries[EventDispatcherInterface::class];
- }
- if (! $this->entries->offsetExists(EventDispatcherInterface::class)) {
- // Simplest implementation to keep core hooks (like ContainerAware) working.
- $this->entries->offsetSet(
- );
- }
- $dispatcher = $this->entries->offsetGet(EventDispatcherInterface::class);
- return $this->handledEntries[EventDispatcherInterface::class] = $dispatcher;
- }
- /**
- * Assign a PSR-14 event dispatcher implementation.
- *