Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update composer dependencies version #97

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ composer.phar
composer.lock
.php_cs.cache
/example/profiler.php
.idea/
.idea/
/.phpunit.result.cache
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "krowinski/php-mysql-replication",
"name": "peoplepath/php-mysql-replication",
"description": "Pure PHP Implementation of MySQL replication protocol. This allow you to receive event like insert, update, delete with their data and raw SQL queries.",
"keywords": [
"mysql-replication",
Expand All @@ -12,17 +12,18 @@
],
"type": "library",
"require": {
"php": ">=7.3",
"php": ">=8.0",
"ext-bcmath": "*",
"ext-json": "*",
"ext-sockets": "*",
"doctrine/collections": "^1.3",
"doctrine/dbal": "^3.0",
"psr/simple-cache": "^1.0",
"symfony/dependency-injection": "^3.1|^4.0|^5.0",
"symfony/event-dispatcher": "^3.1|^4.0|^5.0"
"psr/simple-cache": "^1.0|^2.0",
"symfony/dependency-injection": "^3.1|^4.0|^5.0|^6.0",
"symfony/event-dispatcher": "^3.1|^4.0|^5.0|^6.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.0"
},
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
level: 1
paths:
- src
- tests
4 changes: 2 additions & 2 deletions src/MySQLReplication/BinLog/BinLogCurrent.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public function setMariaDbGtid(string $mariaDbGtid): void
$this->mariaDbGtid = $mariaDbGtid;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ public static function getHeartbeatPeriod(): float
return self::$heartbeatPeriod;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_class_vars(self::class);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/FormatDescriptionEventDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function __toString(): string
'Event size: ' . $this->eventInfo->getSize() . PHP_EOL;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/GTIDLogDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function __toString(): string
'GTID NEXT: ' . $this->gtid . PHP_EOL;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/HeartbeatDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function getType(): string
return $this->type;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/MariaDbGtidLogDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getType(): string
}


public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
Expand All @@ -64,4 +64,4 @@ public function getDomainId(): int
{
return $this->domainId;
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/QueryDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public function __toString(): string
'Query: ' . $this->query . PHP_EOL;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/RotateDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public function __toString(): string
'Binlog filename: ' . $this->nextBinlog . PHP_EOL;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/RowsDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public function __toString(): string
'Values: ' . print_r($this->values, true) . PHP_EOL;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/TableMapDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getType(): string
return $this->type;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
Expand All @@ -48,4 +48,4 @@ public function getTableMap(): TableMap
{
return $this->tableMap;
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/DTO/XidDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function getType(): string
return $this->type;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/EventInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public function getFlag(): int
return $this->flag;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}
4 changes: 2 additions & 2 deletions src/MySQLReplication/Event/RowEvent/TableMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function getColumnDTOCollection(): ColumnDTOCollection
return $this->columnDTOCollection;
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
}
}