Skip to content

Commit 4de4342

Browse files
committed
Blah
Signed-off-by: Luís Cobucci <[email protected]>
1 parent 0e28709 commit 4de4342

20 files changed

+924
-31
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"php-64bit": "^8.1",
2323
"ext-pcntl": "*",
2424
"psr/log": "^3.0",
25+
"react/async": "^4.0",
2526
"react/socket": "^1.6"
2627
},
2728
"require-dev": {

composer.lock

Lines changed: 79 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
- ALLOW_ANONYMOUS_LOGIN=yes
66

77
kafka1:
8-
image: bitnami/kafka:2.8.0
8+
image: bitnami/kafka:3.2.0
99
ports:
1010
- "9093:9093"
1111
environment:
@@ -17,9 +17,7 @@ services:
1717
- KAFKA_INTER_BROKER_LISTENER_NAME=CLIENT
1818

1919
kafka2:
20-
image: bitnami/kafka:2.8.0
21-
profiles:
22-
- clustered
20+
image: bitnami/kafka:3.2.0
2321
ports:
2422
- "9094:9094"
2523
environment:

phpstan-baseline.neon

Lines changed: 58 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,49 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Parameter \\#2 \\$data of method Lcobucci\\\\Kafka\\\\Protocol\\\\Buffer\\:\\:unpack\\(\\) expects string, mixed given\\.$#"
5-
count: 5
6-
path: src/Protocol/Buffer.php
4+
message: "#^Cannot use array destructuring on array\\<int\\|string, array\\<int, array\\<int, int\\|Lcobucci\\\\Kafka\\\\Protocol\\\\API\\\\Request\\|string\\>\\|int\\|Lcobucci\\\\Kafka\\\\Protocol\\\\API\\\\Request\\|React\\\\Promise\\\\Deferred\\|string\\>\\|int\\|React\\\\Promise\\\\Deferred\\>\\|int\\.$#"
5+
count: 1
6+
path: src/Client/Channel.php
7+
8+
-
9+
message: "#^Parameter \\#1 \\$errorCode of class Lcobucci\\\\Kafka\\\\Protocol\\\\API\\\\ApiVersionsResponse constructor expects int, mixed given\\.$#"
10+
count: 1
11+
path: src/Protocol/API/ApiVersionsResponse.php
12+
13+
-
14+
message: "#^Parameter \\#2 \\$apiVersions of class Lcobucci\\\\Kafka\\\\Protocol\\\\API\\\\ApiVersionsResponse constructor expects array\\<int, array\\{api_key\\: int, min_version\\: int, max_version\\: int\\}\\>, mixed given\\.$#"
15+
count: 1
16+
path: src/Protocol/API/ApiVersionsResponse.php
17+
18+
-
19+
message: "#^Parameter \\#3 \\$throttleTime of class Lcobucci\\\\Kafka\\\\Protocol\\\\API\\\\ApiVersionsResponse constructor expects int, mixed given\\.$#"
20+
count: 1
21+
path: src/Protocol/API/ApiVersionsResponse.php
22+
23+
-
24+
message: "#^Parameter \\#1 \\$errorCode of class Lcobucci\\\\Kafka\\\\Protocol\\\\API\\\\MetadataResponse constructor expects int, mixed given\\.$#"
25+
count: 1
26+
path: src/Protocol/API/MetadataResponse.php
27+
28+
-
29+
message: "#^Parameter \\#2 \\$apiVersions of class Lcobucci\\\\Kafka\\\\Protocol\\\\API\\\\MetadataResponse constructor expects array\\<int, array\\{api_key\\: int, min_version\\: int, max_version\\: int\\}\\>, mixed given\\.$#"
30+
count: 1
31+
path: src/Protocol/API/MetadataResponse.php
32+
33+
-
34+
message: "#^Parameter \\#3 \\$throttleTime of class Lcobucci\\\\Kafka\\\\Protocol\\\\API\\\\MetadataResponse constructor expects int, mixed given\\.$#"
35+
count: 1
36+
path: src/Protocol/API/MetadataResponse.php
37+
38+
-
39+
message: "#^Parameter \\#1 \\$definition of method Lcobucci\\\\Kafka\\\\Protocol\\\\Schema\\\\Parser\\:\\:parse\\(\\) expects array\\<string, array\\<string, mixed\\>\\|class\\-string\\<Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\>\\>, array\\<string, array\\<string, mixed\\>\\|string\\> given\\.$#"
40+
count: 1
41+
path: src/Protocol/API/Request.php
42+
43+
-
44+
message: "#^Parameter \\#1 \\$definition of method Lcobucci\\\\Kafka\\\\Protocol\\\\Schema\\\\Parser\\:\\:parse\\(\\) expects array\\<string, array\\<string, mixed\\>\\|class\\-string\\<Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\>\\>, array\\<string, array\\<string, mixed\\>\\|string\\> given\\.$#"
45+
count: 1
46+
path: src/Protocol/API/Response.php
747

848
-
949
message: "#^Parameter \\#1 \\$data of method Lcobucci\\\\Kafka\\\\Protocol\\\\Schema\\:\\:validateField\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
@@ -15,6 +55,21 @@ parameters:
1555
count: 1
1656
path: src/Protocol/Schema.php
1757

58+
-
59+
message: "#^Parameter \\#1 \\$definition of method Lcobucci\\\\Kafka\\\\Protocol\\\\Schema\\\\Parser\\:\\:parse\\(\\) expects array\\<string, array\\<string, mixed\\>\\|class\\-string\\<Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\>\\>, array\\<string, mixed\\> given\\.$#"
60+
count: 1
61+
path: src/Protocol/Schema/Parser.php
62+
63+
-
64+
message: "#^Parameter \\#1 \\$fieldDefinition of method Lcobucci\\\\Kafka\\\\Protocol\\\\Schema\\\\Parser\\:\\:parseFieldType\\(\\) expects array\\<string, mixed\\>\\|class\\-string\\<Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\>, mixed given\\.$#"
65+
count: 1
66+
path: src/Protocol/Schema/Parser.php
67+
68+
-
69+
message: "#^Parameter \\#2 \\$nullable of class Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\\\ArrayOf constructor expects bool, mixed given\\.$#"
70+
count: 1
71+
path: src/Protocol/Schema/Parser.php
72+
1873
-
1974
message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
2075
count: 1
@@ -65,11 +120,6 @@ parameters:
65120
count: 1
66121
path: src/Protocol/Type/Int8.php
67122

68-
-
69-
message: "#^Parameter \\#1 \\$content of static method Lcobucci\\\\Kafka\\\\Protocol\\\\Buffer\\:\\:fromContent\\(\\) expects string, mixed given\\.$#"
70-
count: 1
71-
path: src/Protocol/Type/NonNullableBytes.php
72-
73123
-
74124
message: "#^Parameter \\#1 \\$data of method Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\:\\:guardClass\\(\\) expects object\\|null, mixed given\\.$#"
75125
count: 1
@@ -80,11 +130,6 @@ parameters:
80130
count: 2
81131
path: src/Protocol/Type/NonNullableBytes.php
82132

83-
-
84-
message: "#^Method Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\\\NonNullableString\\:\\:read\\(\\) should return string but returns mixed\\.$#"
85-
count: 1
86-
path: src/Protocol/Type/NonNullableString.php
87-
88133
-
89134
message: "#^Parameter \\#1 \\$data of method Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\:\\:guardLength\\(\\) expects string\\|null, mixed given\\.$#"
90135
count: 1
@@ -100,21 +145,11 @@ parameters:
100145
count: 1
101146
path: src/Protocol/Type/NonNullableString.php
102147

103-
-
104-
message: "#^Parameter \\#1 \\$content of static method Lcobucci\\\\Kafka\\\\Protocol\\\\Buffer\\:\\:fromContent\\(\\) expects string, mixed given\\.$#"
105-
count: 1
106-
path: src/Protocol/Type/NullableBytes.php
107-
108148
-
109149
message: "#^Parameter \\#1 \\$data of method Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\:\\:guardClass\\(\\) expects object\\|null, mixed given\\.$#"
110150
count: 1
111151
path: src/Protocol/Type/NullableBytes.php
112152

113-
-
114-
message: "#^Method Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\\\NullableString\\:\\:read\\(\\) should return string\\|null but returns mixed\\.$#"
115-
count: 1
116-
path: src/Protocol/Type/NullableString.php
117-
118153
-
119154
message: "#^Parameter \\#1 \\$data of method Lcobucci\\\\Kafka\\\\Protocol\\\\Type\\:\\:guardLength\\(\\) expects string\\|null, mixed given\\.$#"
120155
count: 1

0 commit comments

Comments
 (0)