Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Apr 24, 2024
1 parent 1283034 commit 3a0b97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parser/MysqliPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a0b97d

Please sign in to comment.