Skip to content

Commit

Permalink
Merge pull request #53 from TimWolla/phpunit-data-provider
Browse files Browse the repository at this point in the history
Make PHPUnit data providers static
  • Loading branch information
paragonie-security authored Sep 5, 2023
2 parents 5d26cdf + b1995f4 commit 0b52e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Base32Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testRandom()
}
}

public function canonProvider()
public static function canonProvider()
{
return [
['me', 'mf'],
Expand Down
2 changes: 1 addition & 1 deletion tests/CanonicalTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

trait CanonicalTrait
{
public function canonicalDataProvider(): array
public static function canonicalDataProvider(): array
{
return [
['a'],
Expand Down

0 comments on commit 0b52e91

Please sign in to comment.