Your project should use return types
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.missing_return_typehint
- */
- final class ListenerProvider implements ContainerAware, ListenerProviderInterface
- {
- use HasContainer;
- public function getListenersForEvent(object $event): iterable
- {
- $listeners = [
- BeforeRegistration::class => ['beforeRegistration'],
- AfterRegistration::class => ['afterRegistration'],
- BeforeResolution::class => ['beforeResolution'],
Your project should not contain commented code
- Read doc
- Productivity
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.commented_out_code
- self::class => $this,
- ContainerInterface::class => $this,
- ]);
- // if ($eventDispatcher) {
- // $entries[EventDispatcherInterface::class] = $eventDispatcher;
- // }
- foreach ($entries as $id => $factory) {
- $this->set($id, $factory);
- }