From 3a0b97dcbb6518ee6bd8bfad0eb55e0264e2ad81 Mon Sep 17 00:00:00 2001 From: Jonathan Vollebregt Date: Wed, 24 Apr 2024 20:08:35 +0200 Subject: [PATCH] test --- src/Parser/MysqliPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parser/MysqliPlugin.php b/src/Parser/MysqliPlugin.php index 90a4abd6b..fe4d16aa9 100644 --- a/src/Parser/MysqliPlugin.php +++ b/src/Parser/MysqliPlugin.php @@ -88,14 +88,14 @@ public function parse(&$var, Value &$o, int $trigger): void /** @psalm-var ?string $var->sqlstate */ try { - $connected = \is_string(@$var->sqlstate); + $connected = \is_string($var->sqlstate); // TODO } catch (Throwable $t) { $connected = false; } /** @psalm-var ?string $var->client_info */ try { - $empty = !$connected && \is_string(@$var->client_info); + $empty = !$connected && \is_string($var->client_info); // TODO } catch (Throwable $t) { // @codeCoverageIgnore // Only possible in PHP 8.0. Before 8.0 there's no exception, // after 8.1 there are no failed connection objects