Same as https://github.com/cakephp/cakephp/pull/1194/files#r4463930