diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 27853d5a33d3f13eb999cd08b3d69d93ba6b5e19..a2309fe4e4469154ff27fc9811c0e2f1204e332d 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -256,6 +256,7 @@
     <properties>
       <property name="forbiddenAnnotations" type="array">
         <element value="@inheritDoc"/>
+        <element value="@inheritdoc"/>
       </property>
     </properties>
   </rule>
diff --git a/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php b/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php
index 3f4c47db4ab74dac1c185117b83e572f5b977e2c..d29a6ecf4f9fc77e07739db7c697e309fb9358f3 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php
@@ -11,12 +11,12 @@ abstract class DriverSpecificDatabaseTestBase extends DriverSpecificKernelTestBa
   use DatabaseTestSchemaInstallTrait;
 
   /**
-   * @inheritdoc
+   * {@inheritdoc}
    */
   protected static $modules = ['database_test'];
 
   /**
-   * @inheritdoc
+   * {@inheritdoc}
    */
   protected function setUp(): void {
     parent::setUp();
diff --git a/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificKernelTestBase.php b/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificKernelTestBase.php
index eb459eb3a151ad15621ac975d918160fc203eb9b..9be2cbe0a8d50af0add6f20a3f2c4d7cb2fa3855 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificKernelTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificKernelTestBase.php
@@ -24,7 +24,7 @@ abstract class DriverSpecificKernelTestBase extends KernelTestBase {
   protected Connection $connection;
 
   /**
-   * @inheritdoc
+   * {@inheritdoc}
    */
   protected function setUp(): void {
     // Find the current SUT database driver from the connection info. If that