/**
* Print a warning message if the condition evaluates to TRUE.
*
* @param boolean $condition
* @param string $message
*/
public function warnIf($condition, $message = '')
{
if ($condition) {
$message = $message ?: 'Unknown Reason';
$this->outputWriter->write(sprintf(' <comment>Warning during %s: %s</comment>', $this->version->getExecutionState(), $message));
}
}