From b1995f40929477cebbed51b8c76ce724f4887b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 5 Sep 2023 19:02:47 +0200 Subject: [PATCH] Make PHPUnit data providers static This fixes a deprecation in PHPUnit 10. --- tests/Base32Test.php | 2 +- tests/CanonicalTrait.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Base32Test.php b/tests/Base32Test.php index a3f053b..ff6cfcb 100644 --- a/tests/Base32Test.php +++ b/tests/Base32Test.php @@ -53,7 +53,7 @@ public function testRandom() } } - public function canonProvider() + public static function canonProvider() { return [ ['me', 'mf'], diff --git a/tests/CanonicalTrait.php b/tests/CanonicalTrait.php index 971cb66..9de76e1 100644 --- a/tests/CanonicalTrait.php +++ b/tests/CanonicalTrait.php @@ -9,7 +9,7 @@ */ trait CanonicalTrait { - public function canonicalDataProvider(): array + public static function canonicalDataProvider(): array { return [ ['a'],