halaxa / json-machine

Efficient, easy-to-use, and fast PHP JSON stream parser
Apache License 2.0
1.08k stars 65 forks source link

Deprecated warning #84

Closed mat-twg closed 2 years ago

mat-twg commented 2 years ago

Hello, can you tell me how to avoid this:

2022-05-31T21:19:57+00:00 [info] User Deprecated: Method "IteratorAggregate::getIterator()" might add "\Traversable" as a native return type declaration in the future. Do the same in implementation "JsonMachine\Items" now to avoid errors or add an explicit @return annotation to suppress this message.
halaxa commented 2 years ago

Hi, sorry for the late reply. Is Symfony producing this deprecation? If so, you might be able to configure it to ignore JSON Machine. Let me know how it goes.

halaxa commented 2 years ago

Fixed the missing annotation to make Symfony happy. Hope it woks ;)