code: public static function suppress($suppress = true)
      {
          if ($suppress === true) {
              self::$enableWarnings = 0;
          } elseif ($suppress === false) {
              self::$enableWarnings = self::ALL;
          } else {
              self::$enableWarnings &= ~$suppress;
          }
      }
docs: Suppress warning by id (has no effect when custom warning handler is set)
  
  Usage example:
  Warning::suppress(Warning::WARNING_NOT_A_TYPE)
  
  When passing true - suppresses all warnings.
  
  @param bool|int $suppress
  
  @api