Remove usage of deprecated ReadPreference::RP_*
constants
#1529
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
6 errors
Static Analysis with PHPStan (8.2):
tests/Doctrine/ODM/MongoDB/Tests/Functional/ReadPreferenceTest.php#L91
Parameter #1 $mode of method Doctrine\ODM\MongoDB\Tests\Functional\ReadPreferenceTest::assertReadPreferenceHint() expects int, string given.
|
Static Analysis with PHPStan (8.2):
tests/Doctrine/ODM/MongoDB/Tests/Functional/ReadPreferenceTest.php#L101
Parameter #1 $mode of method Doctrine\ODM\MongoDB\Tests\Functional\ReadPreferenceTest::assertReadPreferenceHint() expects int, string given.
|
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.
|
InvalidArgument:
tests/Doctrine/ODM/MongoDB/Tests/Functional/ReadPreferenceTest.php#L91
tests/Doctrine/ODM/MongoDB/Tests/Functional/ReadPreferenceTest.php:91:41: InvalidArgument: Argument 1 of Doctrine\ODM\MongoDB\Tests\Functional\ReadPreferenceTest::assertReadPreferenceHint expects int, but 'nearest' provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/Doctrine/ODM/MongoDB/Tests/Functional/ReadPreferenceTest.php#L101
tests/Doctrine/ODM/MongoDB/Tests/Functional/ReadPreferenceTest.php:101:41: InvalidArgument: Argument 1 of Doctrine\ODM\MongoDB\Tests\Functional\ReadPreferenceTest::assertReadPreferenceHint expects int, but 'secondary' provided (see https://psalm.dev/004)
|
Static Analysis with Psalm (8.2)
Process completed with exit code 2.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
composer-lock-static-analysis-phpstan
Expired
|
23.7 KB |
|
composer-lock-static-analysis-psalm
Expired
|
23.7 KB |
|