diff --git a/remote_stream_wrapper.info.yml b/remote_stream_wrapper.info.yml
index f2e6d9b..446df7e 100644
--- a/remote_stream_wrapper.info.yml
+++ b/remote_stream_wrapper.info.yml
@@ -1,4 +1,4 @@
 name: Remote Stream Wrapper
 type: module
 description: Provides the ability to create Drupal file entities with HTTP and HTTPS URIs without saving them to the local filesystem.
-core_version_requirement: ^10.3
+core_version_requirement: ^10.3 || ^11
diff --git a/src/File/MimeType/HttpMimeTypeGuesser.php b/src/File/MimeType/HttpMimeTypeGuesser.php
index 03bc747..bb1e404 100644
--- a/src/File/MimeType/HttpMimeTypeGuesser.php
+++ b/src/File/MimeType/HttpMimeTypeGuesser.php
@@ -69,7 +69,7 @@ class HttpMimeTypeGuesser implements MimeTypeGuesserInterface {
       }
     }
     catch (\Exception $exception) {
-      watchdog_exception('remote_stream_wrapper', $exception);
+      \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('remote_stream_wrapper'), $exception), fn() => watchdog_exception('remote_stream_wrapper', $exception));
     }
 
     return NULL;
diff --git a/src/StreamWrapper/HttpStreamWrapper.php b/src/StreamWrapper/HttpStreamWrapper.php
index cb4c9e7..1d20ae5 100644
--- a/src/StreamWrapper/HttpStreamWrapper.php
+++ b/src/StreamWrapper/HttpStreamWrapper.php
@@ -148,7 +148,7 @@ class HttpStreamWrapper implements RemoteStreamWrapperInterface {
     catch (\Exception $e) {
       if ($options & STREAM_REPORT_ERRORS) {
         // TODO: Make this testable.
-        watchdog_exception('remote_stream_wrapper', $e);
+        \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('remote_stream_wrapper'), $e), fn() => watchdog_exception('remote_stream_wrapper', $e));
       }
       return FALSE;
     }
@@ -175,7 +175,7 @@ class HttpStreamWrapper implements RemoteStreamWrapperInterface {
       $this->stream->seek($offset, $whence);
     } catch (\RuntimeException $e) {
       // TODO Make this testable.
-      watchdog_exception('remote_stream_wrapper', $e);
+      \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('remote_stream_wrapper'), $e), fn() => watchdog_exception('remote_stream_wrapper', $e));
       return FALSE;
     }
 
@@ -261,7 +261,7 @@ class HttpStreamWrapper implements RemoteStreamWrapperInterface {
       return $stat;
     }
     catch (\Exception $exception) {
-      watchdog_exception('remote_stream_wrapper', $exception);
+      \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('remote_stream_wrapper'), $exception), fn() => watchdog_exception('remote_stream_wrapper', $exception));
       return FALSE;
     }
   }
diff --git a/tests/src/Kernel/HttpMimeTypeGuesserTest.php b/tests/src/Kernel/HttpMimeTypeGuesserTest.php
index 4be4eb2..71e8b3c 100644
--- a/tests/src/Kernel/HttpMimeTypeGuesserTest.php
+++ b/tests/src/Kernel/HttpMimeTypeGuesserTest.php
@@ -71,7 +71,7 @@ class HttpMimeTypeGuesserTest extends KernelTestBase {
   /**
    * Data provider for testParseFileNameFromUrl().
    */
-  public function dataParseFileNameFromUrl(): array {
+  public static function dataParseFileNameFromUrl(): array {
     return [
       ['http://www.example.com/file.txt', 'file.txt'],
       // Test adding query strings and fragments which should be ignored.
@@ -86,7 +86,7 @@ class HttpMimeTypeGuesserTest extends KernelTestBase {
   /**
    * Data provider for testHttpMimeTypeGuessing().
    */
-  public function dataHttpMimetypeGuessing(): array {
+  public static function dataHttpMimetypeGuessing(): array {
     $data = [];
 
     // Filename can be extracted from URL, no HTTP requests.
diff --git a/tests/src/Kernel/HttpStreamWrapperTest.php b/tests/src/Kernel/HttpStreamWrapperTest.php
index 61a6b60..cbcc979 100644
--- a/tests/src/Kernel/HttpStreamWrapperTest.php
+++ b/tests/src/Kernel/HttpStreamWrapperTest.php
@@ -72,7 +72,7 @@ class HttpStreamWrapperTest extends KernelTestBase {
   /**
    * Data provider for testState().
    */
-  public function dataStat(): array {
+  public static function dataStat(): array {
     $data = [];
 
     // HTTP request sends a 405 Method Not Allowed on HEAD.
