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 5d13c70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ jobs:
./vendor
./node_modules
key: ${{ hashFiles('./composer.lock', './package-lock.json') }}
- run: composer install
if: steps.vendor-caches.outputs.cache-hit != 'true'
- run: composer clean
- run: composer build
- run: git status
- run: git diff-files --quiet --exit-code
# - run: composer install
# if: steps.vendor-caches.outputs.cache-hit != 'true'
# - run: composer clean
# - run: composer build
# - run: git status
# - run: git diff-files --quiet --exit-code
test-static:
name: 'Static analysis check'
runs-on: ubuntu-latest
Expand Down
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 5d13c70

Please sign in to comment.