Skip to content

Commit

Permalink
Apply string|int type hints for $writeConcern parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Apr 19, 2024
1 parent bd0003f commit bcf1d77
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ public static function dataProviderTestWriteConcern(): array
* @psalm-param class-string $class
*/
#[DataProvider('dataProviderTestWriteConcern')]
public function testExecuteInsertsRespectsWriteConcern(string $class, $writeConcern): void
public function testExecuteInsertsRespectsWriteConcern(string $class, string|int $writeConcern): void
{
$this->skipTestIfTransactionalFlushEnabled();

Expand Down Expand Up @@ -676,7 +676,7 @@ public function testExecuteInsertsOmitsWriteConcernInTransaction(string $class,
* @psalm-param class-string $class
*/
#[DataProvider('dataProviderTestWriteConcern')]
public function testExecuteUpsertsRespectsWriteConcern(string $class, $writeConcern): void
public function testExecuteUpsertsRespectsWriteConcern(string $class, string|int $writeConcern): void
{
$this->skipTestIfTransactionalFlushEnabled();

Expand All @@ -699,7 +699,7 @@ public function testExecuteUpsertsRespectsWriteConcern(string $class, $writeConc

/** @psalm-param class-string $class */
#[DataProvider('dataProviderTestWriteConcern')]
public function testExecuteUpsertsDoesNotUseWriteConcernInTransaction(string $class, $writeConcern): void
public function testExecuteUpsertsDoesNotUseWriteConcernInTransaction(string $class, string|int $writeConcern): void
{
$this->skipTestIfTransactionalFlushDisabled();

Expand All @@ -725,7 +725,7 @@ public function testExecuteUpsertsDoesNotUseWriteConcernInTransaction(string $cl
* @psalm-param class-string $class
*/
#[DataProvider('dataProviderTestWriteConcern')]
public function testRemoveRespectsWriteConcern(string $class, $writeConcern): void
public function testRemoveRespectsWriteConcern(string $class, string|int $writeConcern): void
{
$this->skipTestIfTransactionalFlushEnabled();

Expand All @@ -750,7 +750,7 @@ public function testRemoveRespectsWriteConcern(string $class, $writeConcern): vo

/** @psalm-param class-string $class */
#[DataProvider('dataProviderTestWriteConcern')]
public function testRemoveDoesNotUseWriteConcernInTransaction(string $class, $writeConcern): void
public function testRemoveDoesNotUseWriteConcernInTransaction(string $class, string|int $writeConcern): void
{
$this->skipTestIfTransactionalFlushDisabled();

Expand Down

0 comments on commit bcf1d77

Please sign in to comment.