Skip to content

Commit

Permalink
Mark PHPUnit data providers static
Browse files Browse the repository at this point in the history
Using non-static methods as a data provider was deprecated in PHPUnit 10
  • Loading branch information
morozov committed Jun 16, 2023
1 parent c2ec5e1 commit 02adc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Functional/Platform/AlterDecimalColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testAlterPrecisionAndScale(int $newPrecision, int $newScale): vo
}

/** @return iterable<string,array{int,int}> */
public function scaleAndPrecisionProvider(): iterable
public static function scaleAndPrecisionProvider(): iterable
{
yield 'Precision' => [12, 6];
yield 'Scale' => [16, 8];
Expand Down

0 comments on commit 02adc27

Please sign in to comment.