Skip to content

Commit

Permalink
Update SyntaxErrorInDibiPreparedStatementMethodRule.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jan 22, 2024
1 parent 6fcb108 commit e4ec6bb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,7 @@ private function checkErrors(CallLike $callLike, Scope $scope, MethodReflection
}
}

// @phpstan-ignore-next-line
if (! \is_string($queryParameters[0])) {
return [];
}

$stringParameterCount = 0;

foreach ($queryParameters as $queryParameter) {
if (\is_string($queryParameter)) {

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (reflection replay) (8.1, pdo-mysql, replay)

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (reflection replay) (8.1, mysqli, replay)

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, mariadb:latest, mysqli, recording)

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, mariadb:latest, mysqli, recording)

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, mariadb:latest, mysqli, recording)

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, mysql:8.0, pdo-mysql, recording, --health-cmd="mysqladmin ping" --health-interval=1...

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, mysql:8.0, mysqli, recording)

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, mysql:8.0, mysqli, recording)

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, mysql:8.0, pdo-mysql, recording, --health-cmd="mysqladmin ping" --health-interval=1...

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, mysql:8.0, mysqli, replay-and-recording, --health-cmd="mysqladmin ping" --health-in...

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.

Check failure on line 131 in src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, mysql:8.0, mysqli, recording)

Call to function is_string() with array<int|string, PHPStan\Type\Type>|iterable<string>|PHPStan\Type\Type will always evaluate to false.
$stringParameterCount = $stringParameterCount + 1;
Expand Down

0 comments on commit e4ec6bb

Please sign in to comment.