/** * @param Fixer|null $fixer * @param ConfigInterface|null $config */ public function __construct(Fixer $fixer = null, ConfigInterface $config = null) { $this->defaultConfig = $config ?: new Config(); $this->eventDispatcher = new EventDispatcher(); $this->fixer = $fixer ?: new Fixer(); $this->errorsManager = $this->fixer->getErrorsManager(); $this->stopwatch = $this->fixer->getStopwatch(); parent::__construct(); }