Fix type checking errors.
Fix type checking errors.

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