Fix type error from 3.x merge.
Fix type error from 3.x merge.

ndm2/cakephp,ADmad/cakephp,CakeDC/cakephp,cakephp/cakephp,cakephp/cakephp,cakephp/cakephp,cakephp/cakephp,CakeDC/cakephp,ADmad/cakephp,ADmad/cakephp,ndm2/cakephp,CakeDC/cakephp,ndm2/cakephp,CakeDC/cakephp,ADmad/cakephp,ndm2/cakephp