TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
357 B
18 lines
357 B
<?php
|
|
|
|
namespace TypePhp\Diagnostics;
|
|
|
|
use PhpParser\Node;
|
|
use TypePhp\Exception\TestError;
|
|
|
|
final class ThrowingDiagnosticReporter implements DiagnosticReporter
|
|
{
|
|
public function fatal(string $message): never
|
|
{
|
|
throw new TestError($message);
|
|
}
|
|
|
|
public function warning(Node $node, string $file, string $message): void
|
|
{
|
|
}
|
|
}
|
|
|