Your project should not use invalid return types 2

More information: https://insight.symfony.com/what-we-analyse/php.invalid_return_typehint

in src/Container.php, line 93
  1. * @return EventDispatcherInterface
  2. */
  3. final public function getEventDispatcher(): EventDispatcherInterface
  4. {
  5. if (isset($this->handledEntries[EventDispatcherInterface::class])) {
  6. return $this->handledEntries[EventDispatcherInterface::class];
    Method Projek\Container::getEventDispatcher() should return Psr\EventDispatcher\EventDispatcherInterface but returns mixed.
    Last edited by Fery Wardiyanto
  7. }
  8. if (! $this->entries->offsetExists(EventDispatcherInterface::class)) {
  9. // Simplest implementation to keep core hooks (like ContainerAware) working.
  10. $this->entries->offsetSet(
in src/Container.php, line 125
  1. );
  2. }
  3. $dispatcher = $this->entries->offsetGet(EventDispatcherInterface::class);
  4. return $this->handledEntries[EventDispatcherInterface::class] = $dispatcher;
    Method Projek\Container::getEventDispatcher() should return Psr\EventDispatcher\EventDispatcherInterface but returns (callable)|object.
    Last edited by Fery Wardiyanto
  5. }
  6. /**
  7. * Assign a PSR-14 event dispatcher implementation.
  8. *