Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Generator.php

function Generator::isSuppressionIgnored

1 call to Generator::isSuppressionIgnored()
Generator::testTriggeredIssue in vendor/phpunit/phpunit/src/Runner/Baseline/Generator.php

File

vendor/phpunit/phpunit/src/Runner/Baseline/Generator.php, line 96

Class

Generator
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Runner\Baseline

Code

private function isSuppressionIgnored(DeprecationTriggered|NoticeTriggered|PhpDeprecationTriggered|PhpNoticeTriggered|PhpWarningTriggered|WarningTriggered $event) : bool {
    if ($event instanceof WarningTriggered) {
        return $this->source
            ->ignoreSuppressionOfWarnings();
    }
    if ($event instanceof PhpWarningTriggered) {
        return $this->source
            ->ignoreSuppressionOfPhpWarnings();
    }
    if ($event instanceof PhpNoticeTriggered) {
        return $this->source
            ->ignoreSuppressionOfPhpNotices();
    }
    if ($event instanceof NoticeTriggered) {
        return $this->source
            ->ignoreSuppressionOfNotices();
    }
    if ($event instanceof PhpDeprecationTriggered) {
        return $this->source
            ->ignoreSuppressionOfPhpDeprecations();
    }
    return $this->source
        ->ignoreSuppressionOfDeprecations();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal