violet-php / streaming-json-encoder

PHP library for iteratively encoding large JSON documents piece by piece
http://violet.riimu.net
MIT License
314 stars 16 forks source link

Small optimization of getting name of the JSON error constant #11

Open peter-gribanov opened 1 year ago

peter-gribanov commented 1 year ago

We restrict the selection to only JSON category constants so as not to check all constants.

codecov[bot] commented 1 year ago

Codecov Report

Merging #11 (c72dd5c) into main (4de0ac8) will not change coverage. The diff coverage is 100.00%.

Additional details and impacted files | [Impacted Files](https://codecov.io/gh/violet-php/streaming-json-encoder/pull/11?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=violet-php) | Coverage Δ | | |---|---|---| | [src/AbstractJsonEncoder.php](https://codecov.io/gh/violet-php/streaming-json-encoder/pull/11?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=violet-php#diff-c3JjL0Fic3RyYWN0SnNvbkVuY29kZXIucGhw) | `100.00% <100.00%> (ø)` | | | [src/JsonStream.php](https://codecov.io/gh/violet-php/streaming-json-encoder/pull/11?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=violet-php#diff-c3JjL0pzb25TdHJlYW0ucGhw) | `100.00% <0.00%> (ø)` | |