function Issue::from
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Runner/TestResult/Issue.php \PHPUnit\TestRunner\TestResult\Issues\Issue::from()
@psalm-param non-empty-string $file @psalm-param positive-int $line @psalm-param ?non-empty-string $hash @psalm-param non-empty-string $description
Throws
3 calls to Issue::from()
- ErrorHandler::ignoredByBaseline in vendor/
phpunit/ phpunit/ src/ Runner/ ErrorHandler.php - @psalm-param non-empty-string $file @psalm-param positive-int $line @psalm-param non-empty-string $description
- Generator::testTriggeredIssue in vendor/
phpunit/ phpunit/ src/ Runner/ Baseline/ Generator.php - Reader::read in vendor/
phpunit/ phpunit/ src/ Runner/ Baseline/ Reader.php - @psalm-param non-empty-string $baselineFile
File
-
vendor/
phpunit/ phpunit/ src/ Runner/ Baseline/ Issue.php, line 55
Class
- Issue
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Runner\BaselineCode
public static function from(string $file, int $line, ?string $hash, string $description) : self {
if ($hash === null) {
$hash = self::calculateHash($file, $line);
}
return new self($file, $line, $hash, $description);
}