diff --git a/tests/src/Kernel/File/ExtensionStreamTest.php b/tests/src/Kernel/File/ExtensionStreamTest.php
index 0e94c8f..256b962 100644
--- a/tests/src/Kernel/File/ExtensionStreamTest.php
+++ b/tests/src/Kernel/File/ExtensionStreamTest.php
@@ -81,7 +81,7 @@ class ExtensionStreamTest extends KernelTestBase {
    * @return array[]
    *   A list of urls to test.
    */
-  public function providerInvalidUris() {
+  public static function providerInvalidUris() {
     return [
       ['invalid/uri'],
       ['invalid_uri'],
@@ -167,7 +167,7 @@ class ExtensionStreamTest extends KernelTestBase {
    *   - The result or the exception when running getExternalUrl() method. The
    *     value is prefixed later, in the test method, with the base url.
    */
-  public function providerStreamWrapperMethods() {
+  public static function providerStreamWrapperMethods() {
     return [
       // Cases for module:// stream wrapper.
       [
