From 241acb9c203cea50a12ceb8eb5e7ed7f60bd4993 Mon Sep 17 00:00:00 2001
From: Lee Rowlands <lee.rowlands@previousnext.com.au>
Date: Mon, 11 Oct 2021 16:44:59 +1000
Subject: [PATCH] Issue #3241272 by andypost, alexpott:
 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php
 causes deprecations on PHP 8.1

---
 .../FileTransfer/TestFileTransfer.php         | 24 +++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php b/core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php
index f9806fd8b133..1860812babf1 100644
--- a/core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php
+++ b/core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php
@@ -8,10 +8,26 @@
  * Mock FileTransfer object for test case.
  */
 class TestFileTransfer extends FileTransfer {
-  protected $host = NULL;
-  protected $username = NULL;
-  protected $password = NULL;
-  protected $port = NULL;
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $host = '';
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $username = '';
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $password = '';
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $port = 0;
 
   /**
    * This is for testing the CopyRecursive logic.
-- 
GitLab