Fix deprecation messages

 - Use addViolation method on the ExecutionContext object instead of
   setMessage.
 - Rename isValid method to validate and drop its return value.
 - Update composer.json.