diff --git a/core/tests/Drupal/Tests/Component/Utility/NumberTest.php b/core/tests/Drupal/Tests/Component/Utility/NumberTest.php
index 8ab1fc59eb41cffeb83d90dcc38c2b93320af91f..4cfdceed8e764926f1cba65e4bf4ee1cafe6388c 100644
--- a/core/tests/Drupal/Tests/Component/Utility/NumberTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/NumberTest.php
@@ -53,7 +53,7 @@ public function testNormalize($number, $expected) {
   /**
    * Provides data to self::testNormalize().
    */
-  public function providerNormalize() {
+  public static function providerNormalize() {
     return [
       ['', ''],
       [0, 0],
@@ -85,7 +85,7 @@ public function testCountSignificantDecimals($expected, $number) {
   /**
    * Provides data to self::testCountSignificantDecimals().
    */
-  public function provideCountSignificantDecimals() {
+  public static function provideCountSignificantDecimals() {
     return [
       [0, 0],
       [0, '0'],