more fixes

This commit is contained in:
Brett McBride 2025-07-17 09:45:08 +10:00
parent 26b1143b4d
commit 853f978216
3 changed files with 13 additions and 2 deletions

View File

@ -286,6 +286,7 @@ return [
'PhanAccessPropertyInternal',
'PhanTypeMismatchPropertyReal',
'PhanTemplateTypeNotUsedInFunctionReturn',
'PhanUndeclaredClassAttribute',
],
// A regular expression to match files to be excluded

View File

@ -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"/>

View File

@ -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);