From 7ce4529b2b2ea7de3b6f344a1a41f58201999180 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 14 Dec 2022 15:42:16 +0100 Subject: [PATCH] Migrate to `static` data providers using `rector/rector` --- Tests/Command/UserPasswordHashCommandTest.php | 2 +- Tests/Hasher/NativePasswordHasherTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Command/UserPasswordHashCommandTest.php b/Tests/Command/UserPasswordHashCommandTest.php index 16924a1..86a183e 100644 --- a/Tests/Command/UserPasswordHashCommandTest.php +++ b/Tests/Command/UserPasswordHashCommandTest.php @@ -302,7 +302,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]; });