warnings.warn("Title is more than 31 characters. Some applications may not be able to read the file") code example
Example: Maximum 31 characters allowed in sheet title
if (PHPExcel_Shared_String::CountCharacters($pValue) > 31) {
throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet title.');
}