krowinski / php-mysql-replication

Pure PHP Implementation of MySQL replication protocol. This allow you to receive event like insert, update, delete with their data and raw SQL queries.
MIT License
323 stars 97 forks source link

require "symfony/event-dispatcher" #86

Closed venenox126 closed 3 years ago

venenox126 commented 3 years ago

Sorry, my English is not good, I hope you can understand my description This is the description of machine translation

php-mysql-replication Version*: ^6.2.0

file: MySQLReplication\Event\dispatch(EventDTO $eventDTO = null) 6.1.0 Version $this->eventDispatcher->dispatch($eventDTO->getType(), $eventDTO);

^6.2.0 Version $this->eventDispatcher->dispatch($eventDTO, $eventDTO->getType());

^6.2.0 Version composer.json require "symfony/event-dispatcher": "^3.1|^4.0|^5.0" but ^3.1|^4.0 Method parameters dispatch($eventName, Event $event = null) It is different from the call mode

error info :Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null, string given, called in /WMS/vendor/krowinski/php-mysql-replication/src/MySQLReplication/Event/Event.php on line 132[/WMS/vendor/symfony/event-dispatcher/EventDispatcher.php:36]

krowinski commented 3 years ago

I thing this was fixed 6.2.4 in #69 issue can you verify?