Add checks for usage of deprecated API.
This will avoid adding more technical debt of code which needs to be changed when the CakePHP version is upgraded in the future. Existing violations are added to the psalm baseline which can be addressed later.
Edited by ADmad