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\BaselineCode
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();
}