Fix strict typing errors.
Fix strict typing errors.

Refs #13548

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