diff --git a/core/lib/Drupal/Core/Database/Connection.php b/core/lib/Drupal/Core/Database/Connection.php
index 4f28e5b669a7f2b8d43616e98d9aac3a37f2e2a1..67c601d3db0e463881515d35ece9f88c63689848 100644
--- a/core/lib/Drupal/Core/Database/Connection.php
+++ b/core/lib/Drupal/Core/Database/Connection.php
@@ -73,7 +73,7 @@ abstract class Connection {
   /**
    * The name of the Statement class for this connection.
    *
-   * @var string
+   * @var string|null
    *
    * @deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Database
    *   drivers should use or extend StatementWrapper instead, and encapsulate
@@ -86,7 +86,7 @@ abstract class Connection {
   /**
    * The name of the StatementWrapper class for this connection.
    *
-   * @var string
+   * @var string|null
    */
   protected $statementWrapperClass = NULL;