File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: 2.1
22
33orbs :
44 ci-caching : jobcloud/ci-caching@3.1
5- ci-php : jobcloud/ci-php@2.4
5+ ci-php : jobcloud/ci-php@2.5
66
77workflows :
88 test-php-kafka-lib :
Original file line number Diff line number Diff line change 1- FROM php:7.4-cli-alpine3.13
1+ FROM php:7.4-cli-alpine3.16
22
33ARG HOST_USER_ID
44ARG HOST_USER
@@ -10,10 +10,7 @@ COPY files/php/ /phpIni
1010
1111# SYS: Install required packages
1212RUN apk --no-cache upgrade && \
13- apk --no-cache add bash git sudo openssh autoconf gcc g++ make
14-
15- RUN apk add librdkafka librdkafka-dev \
16- --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community
13+ apk --no-cache add bash git sudo openssh autoconf gcc g++ make librdkafka librdkafka-dev
1714
1815# we need support for users with ID higher than 65k, so instead of using this:
1916# RUN adduser -u $HOST_USER_ID -D -H $HOST_USER
Original file line number Diff line number Diff line change 44
55namespace Jobcloud \Kafka \Consumer ;
66
7+ use Jobcloud \Kafka \Exception \KafkaConsumerConsumeException ;
8+ use Jobcloud \Kafka \Exception \KafkaConsumerEndOfPartitionException ;
9+ use Jobcloud \Kafka \Exception \KafkaConsumerTimeoutException ;
710use Jobcloud \Kafka \Message \KafkaConsumerMessageInterface ;
811use RdKafka \Metadata \Topic as RdKafkaMetadataTopic ;
912use RdKafka \TopicPartition as RdKafkaTopicPartition ;
@@ -45,6 +48,9 @@ public function isSubscribed(): bool;
4548 * @param integer $timeoutMs
4649 * @param boolean $autoDecode
4750 * @return KafkaConsumerMessageInterface
51+ * @throws KafkaConsumerConsumeException
52+ * @throws KafkaConsumerEndOfPartitionException
53+ * @throws KafkaConsumerTimeoutException
4854 */
4955 public function consume (int $ timeoutMs = 10000 , bool $ autoDecode = true ): KafkaConsumerMessageInterface ;
5056
You can’t perform that action at this time.
0 commit comments