/** * Record a warning message in the warnings log (warnings.txt) * * @param string $text * @param int|bool $flags Specify boolean true to also display the warning interactively (admin only). * @return $this * */ public function warning($text, $flags = 0) { $flags = $flags === true ? Notice::log : $flags | Notice::logOnly; return parent::warning($text, $flags); }