Skip to content

Commit 0dbf292

Browse files
authored
Merge pull request #3 from apacheborys/bug/fix-bugs
Bug/fix bugs
2 parents 1a2ff80 + 18474d2 commit 0dbf292

File tree

4 files changed

+53
-46
lines changed

4 files changed

+53
-46
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^7.4||^8.0",
14-
"apacheborys/re-try-php": "*",
14+
"apacheborys/re-try-php": "^0.14",
1515
"psr/log": "^1.1"
1616
},
1717
"require-dev": {

composer.lock

Lines changed: 49 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM php:7.4-cli
22
RUN apt-get update && apt-get install -y \
3-
&& apt-get install git unzip wget curl -y \
3+
&& apt-get install git unzip wget curl libsodium-dev -y \
44
&& pecl install inotify mongodb \
5+
&& docker-php-ext-install sodium \
56
&& echo "extension=mongodb.so" >> /usr/local/etc/php/php.ini \
67
&& echo "extension=inotify.so" >> /usr/local/etc/php/php.ini \
78
&& curl -sS https://getcomposer.org/installer |php \

src/BasicTransport/FileTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function fetchUnprocessedMessages(int $batchSize = -1): ?iterable
7171

7272
$returnedItems = 0;
7373

74-
foreach ($this->fileIndexProcessed[0] as $position) {
74+
foreach ($this->fileIndexProcessed[0] ?? [] as $position) {
7575
fseek($this->fp, $position + 1);
7676
$rawMessage = fgets($this->fp);
7777

0 commit comments

Comments
 (0)