harden method signatures

Follow up on https://github.com/cakephp/cakephp/pull/3233 part 3