codeclimate / codeclimate-phpmd

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

Fix unescaped unicode encoding parameter #26

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.