Your project should not use invalid return types
- 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(