Skip to content

Remove usage of deprecated ReadPreference::RP_* constants #1529

Remove usage of deprecated ReadPreference::RP_* constants

Remove usage of deprecated ReadPreference::RP_* constants #1529

Triggered via pull request October 21, 2024 17:51
Status Failure
Total duration 1m 6s
Artifacts 2

static-analysis.yml

on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Fit to window
Zoom out
Zoom in

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
23.7 KB
composer-lock-static-analysis-psalm
23.7 KB