Reproduce MySQL warnings with and without emulated prepares #6042
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
7 errors
InvalidReturnType:
tests/Functional/Platform/MySQLWarningsWithBinaryTest.php#L62
tests/Functional/Platform/MySQLWarningsWithBinaryTest.php:62:17: InvalidReturnType: The declared return type 'iterable<mixed, list{string, array<int<0, max>|string, mixed>, array<int<0, max>|string, Doctrine\DBAL\ArrayParameterType|Doctrine\DBAL\ParameterType|Doctrine\DBAL\Types\Type|string>}>' for Doctrine\DBAL\Tests\Functional\Platform\MySQLWarningsWithBinaryTest::useCases is incorrect, got 'Generator<'_binary and ParameterType::BINARY'|'_binary and ParameterType::STRING'|'string and ParameterType::BINARY'|'string and ParameterType::STRING', list{'INSERT INTO `binary_warnings_test` (`id`) VALUES (?)'|'INSERT INTO `binary_warnings_test` (`id`) VALUES (_binary ?)', list{0?: enum(Doctrine\DBAL\ParameterType::BINARY)}}, mixed, void>' (see https://psalm.dev/011)
|
Static Analysis with Psalm (8.3)
Process completed with exit code 2.
|
Static Analysis with PHPStan (8.3):
tests/Functional/Platform/MySQLWarningsWithBinaryTest.php#L65
Generator expects value type array{string, array<int|string, mixed>, array<int<0, max>|string, Doctrine\DBAL\ArrayParameterType|Doctrine\DBAL\ParameterType|Doctrine\DBAL\Types\Type|string>}, array{'INSERT INTO `binary…', array{Doctrine\DBAL\ParameterType::BINARY}} given.
|
Static Analysis with PHPStan (8.3):
tests/Functional/Platform/MySQLWarningsWithBinaryTest.php#L70
Generator expects value type array{string, array<int|string, mixed>, array<int<0, max>|string, Doctrine\DBAL\ArrayParameterType|Doctrine\DBAL\ParameterType|Doctrine\DBAL\Types\Type|string>}, array{'INSERT INTO `binary…', array{}} given.
|
Static Analysis with PHPStan (8.3):
tests/Functional/Platform/MySQLWarningsWithBinaryTest.php#L75
Generator expects value type array{string, array<int|string, mixed>, array<int<0, max>|string, Doctrine\DBAL\ArrayParameterType|Doctrine\DBAL\ParameterType|Doctrine\DBAL\Types\Type|string>}, array{'INSERT INTO `binary…', array{Doctrine\DBAL\ParameterType::BINARY}} given.
|
Static Analysis with PHPStan (8.3):
tests/Functional/Platform/MySQLWarningsWithBinaryTest.php#L80
Generator expects value type array{string, array<int|string, mixed>, array<int<0, max>|string, Doctrine\DBAL\ArrayParameterType|Doctrine\DBAL\ParameterType|Doctrine\DBAL\Types\Type|string>}, array{'INSERT INTO `binary…', array{}} given.
|
Static Analysis with PHPStan (8.3)
Process completed with exit code 1.
|