codeclimate / codeclimate-phpmd

Code Climate PHPMD Engine
MIT License
10 stars 12 forks source link

Fix unescaped unicode encoding parameter #25

Closed landrok closed 8 years ago

landrok commented 8 years ago

3rd parameter for json_encode is a max depth limitation. JSON_UNESCAPED_UNICODE has an int value of 256 whereas the max depth value is 512 (so no matter this way). This patch restores the expected usage of UNESCAPED_UNICODE param which is to encode multibyte Unicode characters literally.

landrok commented 8 years ago

Sorry, I did not want to pull this 2 patches into one. I'll close and reopen 2 separated pulls in a moment.