Fixed in https://github.com/ankr/cakephp/commit/8a2e77992db3f9cef60fc0b79a650f425b072fce