Argument validation for addError() method
PHPDoc updates