File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/MySQLReplication/Event/RowEvent Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 70
70
env:
71
71
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72
72
run: |
73
- composer require "php-coveralls/php-coveralls:^2" --dev -W
74
- ls ./vendor/bin
73
+ composer require "php-coveralls/php-coveralls:^2" --dev -q -W
75
74
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
76
75
./vendor/bin/php-coveralls -v
Original file line number Diff line number Diff line change @@ -682,7 +682,8 @@ protected function getDatetime(): ?string
682
682
}
683
683
684
684
$date = DateTime::createFromFormat('YmdHis', $value)->format('Y-m-d H:i:s');
685
- if (array_sum(DateTime::getLastErrors()) > 0) {
685
+ $dateLastErrors = DateTime::getLastErrors();
686
+ if ($dateLastErrors && array_sum($dateLastErrors) > 0) {
686
687
return null;
687
688
}
688
689
You can’t perform that action at this time.
0 commit comments