Correct unused attributes
Merge pull request #5170 from cakephp/3.0-fix

Correct unused attributes