function Generator::restrict
1 call to Generator::restrict()
- Generator::testTriggeredIssue in vendor/
phpunit/ phpunit/ src/ Runner/ Baseline/ Generator.php
File
-
vendor/
phpunit/ phpunit/ src/ Runner/ Baseline/ Generator.php, line 83
Class
- Generator
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Runner\BaselineCode
private function restrict(DeprecationTriggered|NoticeTriggered|PhpDeprecationTriggered|PhpNoticeTriggered|PhpWarningTriggered|WarningTriggered $event) : bool {
if ($event instanceof WarningTriggered || $event instanceof PhpWarningTriggered) {
return $this->source
->restrictWarnings();
}
if ($event instanceof NoticeTriggered || $event instanceof PhpNoticeTriggered) {
return $this->source
->restrictNotices();
}
return $this->source
->restrictDeprecations();
}