diff --git a/composer.json b/composer.json index cae9b1c..4b5bf5f 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "type": "library", "require": { - "php": ">=8.2", + "php": ">=8.1", "ext-bcmath": "*", "ext-json": "*", "ext-sockets": "*", diff --git a/src/MySQLReplication/BinLog/BinLogServerInfo.php b/src/MySQLReplication/BinLog/BinLogServerInfo.php index fbd7704..4627f32 100644 --- a/src/MySQLReplication/BinLog/BinLogServerInfo.php +++ b/src/MySQLReplication/BinLog/BinLogServerInfo.php @@ -6,7 +6,7 @@ use MySQLReplication\BinaryDataReader\BinaryDataReader; -readonly class BinLogServerInfo +class BinLogServerInfo { private const MYSQL_VERSION_MARIADB = 'MariaDB'; private const MYSQL_VERSION_PERCONA = 'Percona'; diff --git a/src/MySQLReplication/Config/Config.php b/src/MySQLReplication/Config/Config.php index e37e65f..4c3fd47 100644 --- a/src/MySQLReplication/Config/Config.php +++ b/src/MySQLReplication/Config/Config.php @@ -6,7 +6,7 @@ use JsonSerializable; -readonly class Config implements JsonSerializable +class Config implements JsonSerializable { public function __construct( public string $user, diff --git a/src/MySQLReplication/Event/Event.php b/src/MySQLReplication/Event/Event.php index 25f519d..a1cf11f 100644 --- a/src/MySQLReplication/Event/Event.php +++ b/src/MySQLReplication/Event/Event.php @@ -17,7 +17,7 @@ use Psr\SimpleCache\CacheInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; -readonly class Event +class Event { private const MARIADB_DUMMY_QUERY = '# Dum'; diff --git a/src/MySQLReplication/Event/RowEvent/ColumnDTO.php b/src/MySQLReplication/Event/RowEvent/ColumnDTO.php index a0cad6d..f4b529c 100644 --- a/src/MySQLReplication/Event/RowEvent/ColumnDTO.php +++ b/src/MySQLReplication/Event/RowEvent/ColumnDTO.php @@ -9,7 +9,7 @@ use MySQLReplication\Definitions\ConstFieldType; use MySQLReplication\Repository\FieldDTO; -readonly class ColumnDTO implements JsonSerializable +class ColumnDTO implements JsonSerializable { public function __construct( public FieldDTO $fieldDTO, diff --git a/src/MySQLReplication/Event/RowEvent/RowEventFactory.php b/src/MySQLReplication/Event/RowEvent/RowEventFactory.php index ca1b8c6..822292e 100644 --- a/src/MySQLReplication/Event/RowEvent/RowEventFactory.php +++ b/src/MySQLReplication/Event/RowEvent/RowEventFactory.php @@ -7,7 +7,7 @@ use MySQLReplication\BinaryDataReader\BinaryDataReader; use MySQLReplication\Event\EventInfo; -readonly class RowEventFactory +class RowEventFactory { public function __construct( private RowEventBuilder $rowEventBuilder diff --git a/src/MySQLReplication/Event/RowEvent/TableMap.php b/src/MySQLReplication/Event/RowEvent/TableMap.php index 5ceffad..1070ca2 100644 --- a/src/MySQLReplication/Event/RowEvent/TableMap.php +++ b/src/MySQLReplication/Event/RowEvent/TableMap.php @@ -6,7 +6,7 @@ use JsonSerializable; -readonly class TableMap implements JsonSerializable +class TableMap implements JsonSerializable { public function __construct( public string $database, diff --git a/src/MySQLReplication/Event/RowEvent/TableMapCache.php b/src/MySQLReplication/Event/RowEvent/TableMapCache.php index 541b092..6e114ad 100644 --- a/src/MySQLReplication/Event/RowEvent/TableMapCache.php +++ b/src/MySQLReplication/Event/RowEvent/TableMapCache.php @@ -6,7 +6,7 @@ use Psr\SimpleCache\CacheInterface; -readonly class TableMapCache +class TableMapCache { public function __construct( private CacheInterface $cache diff --git a/src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderService.php b/src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderService.php index d669ef4..52480fd 100644 --- a/src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderService.php +++ b/src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderService.php @@ -13,7 +13,7 @@ * @see https://github.com/mysql/mysql-server/blob/8.0/sql/json_binary.cc * @see https://github.com/shyiko/mysql-binlog-connector-java/blob/master/src/main/java/com/github/shyiko/mysql/binlog/event/deserialization/json/JsonBinary.java */ -readonly class JsonBinaryDecoderService +class JsonBinaryDecoderService { public const SMALL_OBJECT = 0; diff --git a/src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderValue.php b/src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderValue.php index 8980528..84cb177 100644 --- a/src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderValue.php +++ b/src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderValue.php @@ -4,7 +4,7 @@ namespace MySQLReplication\JsonBinaryDecoder; -readonly class JsonBinaryDecoderValue +class JsonBinaryDecoderValue { public function __construct( public bool $isResolved, diff --git a/src/MySQLReplication/Repository/FieldDTO.php b/src/MySQLReplication/Repository/FieldDTO.php index 27bf5f2..d0192c7 100644 --- a/src/MySQLReplication/Repository/FieldDTO.php +++ b/src/MySQLReplication/Repository/FieldDTO.php @@ -4,7 +4,7 @@ namespace MySQLReplication\Repository; -readonly class FieldDTO +class FieldDTO { public function __construct( public string $columnName, diff --git a/src/MySQLReplication/Repository/MasterStatusDTO.php b/src/MySQLReplication/Repository/MasterStatusDTO.php index 1e20ecd..b4aed9d 100644 --- a/src/MySQLReplication/Repository/MasterStatusDTO.php +++ b/src/MySQLReplication/Repository/MasterStatusDTO.php @@ -4,7 +4,7 @@ namespace MySQLReplication\Repository; -readonly class MasterStatusDTO +class MasterStatusDTO { public function __construct( public string $position, diff --git a/src/MySQLReplication/Repository/MySQLRepository.php b/src/MySQLReplication/Repository/MySQLRepository.php index ee7a779..c841c17 100644 --- a/src/MySQLReplication/Repository/MySQLRepository.php +++ b/src/MySQLReplication/Repository/MySQLRepository.php @@ -9,7 +9,7 @@ use MySQLReplication\BinLog\BinLogException; use MySQLReplication\Exception\MySQLReplicationException; -readonly class MySQLRepository implements RepositoryInterface, PingableConnection +class MySQLRepository implements RepositoryInterface, PingableConnection { public function __construct( private Connection $connection