php-mysql-replication icon indicating copy to clipboard operation
php-mysql-replication copied to clipboard

PHP 8.1: spammed with warnings

Open quakemmo opened this issue 3 years ago • 0 comments

Great job, this is a very useful piece of code. Small issue here with PHP 8.1:

  • Operating System: <Linux | Windows | OS X> Linux

  • PHP Version: <5.6 | 7.0 | ...> PHP 8.1

  • php-mysql-replication Version: <1.0.0> 1.0.0

  • *mysql version Oracle-MYSQL 8.0.27

Steps required to reproduce the problem.

1. Run the dump_events.php
2. Get spammed by deprecated warnings

Expected Result. Not get spammed by warnings

Actual Result.

Return type of MySQLReplication\Event\EventInfo::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<path>/vendor/krowinski/php-mysql-replication/src/MySQLReplication/Event/EventInfo.php on line 100

quakemmo avatar Jan 14 '22 12:01 quakemmo