Skip to content
Merged
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer require "php-coveralls/php-coveralls:^2" --dev -W
ls ./vendor/bin
composer require "php-coveralls/php-coveralls:^2" --dev -q -W
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
./vendor/bin/php-coveralls -v
3 changes: 2 additions & 1 deletion src/MySQLReplication/Event/RowEvent/RowEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ protected function getDatetime(): ?string
}

$date = DateTime::createFromFormat('YmdHis', $value)->format('Y-m-d H:i:s');
if (array_sum(DateTime::getLastErrors()) > 0) {
$dateLastErrors = DateTime::getLastErrors();
if ($dateLastErrors && array_sum($dateLastErrors) > 0) {
return null;
}

Expand Down