more fixes
This commit is contained in:
parent
26b1143b4d
commit
853f978216
|
|
@ -286,6 +286,7 @@ return [
|
|||
'PhanAccessPropertyInternal',
|
||||
'PhanTypeMismatchPropertyReal',
|
||||
'PhanTemplateTypeNotUsedInFunctionReturn',
|
||||
'PhanUndeclaredClassAttribute',
|
||||
],
|
||||
|
||||
// A regular expression to match files to be excluded
|
||||
|
|
|
|||
|
|
@ -39,6 +39,11 @@
|
|||
<directory name="./examples"/>
|
||||
</errorLevel>
|
||||
</ArgumentTypeCoercion>
|
||||
<InvalidArgument>
|
||||
<errorLevel type="suppress">
|
||||
<directory name="src/Config/SDK/Configuration/Internal"/>
|
||||
</errorLevel>
|
||||
</InvalidArgument>
|
||||
<UndefinedInterfaceMethod>
|
||||
<errorLevel type="suppress">
|
||||
<directory name="src/Config/SDK/ComponentProvider"/>
|
||||
|
|
@ -51,6 +56,12 @@
|
|||
<directory name="tests/Integration/Config"/>
|
||||
</errorLevel>
|
||||
</PossiblyInvalidArgument>
|
||||
<PossiblyNullReference>
|
||||
<errorLevel type="suppress">
|
||||
<directory name="src/Config/SDK/ComponentProvider"/>
|
||||
<directory name="tests/Integration/Config/ComponentProvider"/>
|
||||
</errorLevel>
|
||||
</PossiblyNullReference>
|
||||
<MoreSpecificImplementedParamType>
|
||||
<errorLevel type="suppress">
|
||||
<directory name="src/Config/SDK/ComponentProvider"/>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace OpenTelemetry\SDK\Logs\Exporter;
|
||||
|
||||
use OpenTelemetry\API\Behavior\LogsMessagesTrait;
|
||||
use OpenTelemetry\SDK\Common\Export\TransportInterface;
|
||||
use OpenTelemetry\SDK\Common\Future\CancellationInterface;
|
||||
use OpenTelemetry\SDK\Common\Future\CompletedFuture;
|
||||
|
|
@ -51,7 +50,7 @@ class ConsoleExporter implements LogRecordExporterInterface
|
|||
if ($payload === false) {
|
||||
return new ErrorFuture(
|
||||
new \RuntimeException('Failed to encode log records to JSON: ' . json_last_error_msg())
|
||||
););
|
||||
);
|
||||
}
|
||||
$this->transport->send($payload);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue