diff --git a/Tests/Command/UserPasswordHashCommandTest.php b/Tests/Command/UserPasswordHashCommandTest.php index d5551f7..8ec8baf 100644 --- a/Tests/Command/UserPasswordHashCommandTest.php +++ b/Tests/Command/UserPasswordHashCommandTest.php @@ -298,7 +298,7 @@ public function testCompletionSuggestions(array $input, array $expectedSuggestio $this->assertSame($expectedSuggestions, $tester->complete($input)); } - public function provideCompletionSuggestions(): iterable + public static function provideCompletionSuggestions(): iterable { yield 'user_class_empty' => [ ['p@ssw0rd', ''], diff --git a/Tests/Hasher/NativePasswordHasherTest.php b/Tests/Hasher/NativePasswordHasherTest.php index dc29ac6..2b7bd78 100644 --- a/Tests/Hasher/NativePasswordHasherTest.php +++ b/Tests/Hasher/NativePasswordHasherTest.php @@ -39,7 +39,7 @@ public function testCostInRange($cost) $this->assertInstanceOf(NativePasswordHasher::class, new NativePasswordHasher(null, null, $cost)); } - public function validRangeData() + public static function validRangeData() { $costs = range(4, 31); array_walk($costs, function (&$cost) { $cost = [$cost]; });