Skip to content

Commit 0569059

Browse files
alumarcutPl0ch
authored andcommitted
Replace flix-tech/avro-php instead of rg/avro-php to fix critical bug (#12)
The bug made it impossible to deserialize binary encoded messages which contained `array` and `map` data types in their schemas
1 parent d014797 commit 0569059

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ compliant requests that can be used as well as high level abstractions to ease d
3434
| **`php`** | ~7.0 | Anything lower has reached EOL |
3535
| **`guzzlephp/guzzle`** | ~6.3 | Using `Request` to build PSR-7 `RequestInterface` |
3636
| **`beberlei/assert`** | ~2.7 | The de-facto standard assertions library for PHP |
37-
| **`rg/avro-php`** | ~1.8 | The only Avro PHP implementation I have found so far. |
37+
| **`flix-tech/avro-php`** | ^2.0 | Maintained fork of the only Avro PHP implementation: `rg/avro-php` |
3838

3939
### Optional dependencies
4040

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,17 @@
1010
"email": "thomas.ploch@flixbus.com"
1111
}
1212
],
13+
"repositories": [
14+
{
15+
"type": "vcs",
16+
"url": "git@github.com:flix-tech/avro-php.git"
17+
}
18+
],
1319
"require": {
1420
"php": "~7.0",
1521
"guzzlehttp/guzzle": "~6.3",
1622
"beberlei/assert": "~2.7",
17-
"rg/avro-php": "~1.8"
23+
"flix-tech/avro-php": "^2.0"
1824
},
1925
"require-dev": {
2026
"phpunit/phpunit": "~6.2",
@@ -24,7 +30,7 @@
2430
"doctrine/cache": "~1.3"
2531
},
2632
"suggest": {
27-
"rg/avro-php": "Needed if you want to use the high level registry abstractions",
33+
"flix-tech/avro-php": "Needed for decoding and encoding messages in Apache Avro format",
2834
"raphhh/trex-reflection": "Needed if you want to use the `RequestCallbackValidator`",
2935
"doctrine/cache": "If you want to use the DoctrineCacheAdapter"
3036
},

0 commit comments

Comments
 (0)