diff --git a/src/Client/TrapHandle/Dumper.php b/src/Client/TrapHandle/Dumper.php index ab9f6650..4f689837 100644 --- a/src/Client/TrapHandle/Dumper.php +++ b/src/Client/TrapHandle/Dumper.php @@ -32,6 +32,7 @@ final class Dumper public static function dump(mixed $var, string|int|null $label = null, int $depth = 0): mixed { + /** @psalm-suppress RiskyTruthyFalsyComparison */ return (self::$handler ??= self::registerHandler())($var, empty($label) ? null : (string)$label, $depth); } @@ -72,6 +73,7 @@ public static function setDumper(?DataDumperInterface $dumper = null): Closure * @return Closure(mixed, string|null, int): mixed * * @author Nicolas Grekas
+ * @psalm-suppress RiskyTruthyFalsyComparison */ private static function registerHandler(): Closure { diff --git a/src/Sender/Console/Renderer/Sentry/Exceptions.php b/src/Sender/Console/Renderer/Sentry/Exceptions.php index 2586f80e..89e46285 100644 --- a/src/Sender/Console/Renderer/Sentry/Exceptions.php +++ b/src/Sender/Console/Renderer/Sentry/Exceptions.php @@ -58,6 +58,8 @@ public static function render(OutputInterface $output, mixed $exceptions): void /** * Renders the trace of the exception. + * + * @psalm-suppress RiskyTruthyFalsyComparison */ private static function renderTrace(OutputInterface $output, array $frames, bool $verbose = false): void { @@ -82,6 +84,7 @@ private static function renderTrace(OutputInterface $output, array $frames, bool $file = $getValue($frame, 'filename'); $line = $getValue($frame, 'lineno', null); $class = $getValue($frame, 'class'); + /** @psalm-suppress RiskyTruthyFalsyComparison */ $class = empty($class) ? '' : $class . '::'; $function = $getValue($frame, 'function'); diff --git a/src/Sender/Console/Renderer/VarDumper.php b/src/Sender/Console/Renderer/VarDumper.php index 983b5b54..dd6b8e06 100644 --- a/src/Sender/Console/Renderer/VarDumper.php +++ b/src/Sender/Console/Renderer/VarDumper.php @@ -57,6 +57,9 @@ public function __construct( ) { } + /** + * @psalm-suppress RiskyTruthyFalsyComparison + */ public function describe(OutputInterface $output, Data $data, array $context, int $clientId): void { Common::renderHeader1($output, 'DUMP'); diff --git a/src/Socket/Server.php b/src/Socket/Server.php index ca8d2c87..7cb8daeb 100644 --- a/src/Socket/Server.php +++ b/src/Socket/Server.php @@ -95,6 +95,7 @@ public function process(): void while (!$this->cancelled and false !== ($socket = \socket_accept($this->socket))) { $client = null; try { + /** @psalm-suppress MixedArgument */ $client = Client::init($socket, $this->payloadSize); $key = (int)\array_key_last($this->clients) + 1; $this->clients[$key] = $client;