Fix error reported by phpstan.
Fix error reported by phpstan.

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