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