diff --git a/core/lib/Drupal/Core/Access/AccessResultReasonInterface.php b/core/lib/Drupal/Core/Access/AccessResultReasonInterface.php
index 8ed1c6ad3a714d38ac9a0f7d2518d3a9bb75cedc..d011fe56258671eb7f4648fd4ab8b6b4a2d00d19 100644
--- a/core/lib/Drupal/Core/Access/AccessResultReasonInterface.php
+++ b/core/lib/Drupal/Core/Access/AccessResultReasonInterface.php
@@ -26,7 +26,7 @@ public function getReason();
   /**
    * Sets the reason for this access result.
    *
-   * @param $reason string|null
+   * @param string|null $reason
    *   The reason of this access result or NULL if no reason is provided.
    *
    * @return \Drupal\Core\Access\AccessResultInterface
diff --git a/core/modules/file/tests/src/Functional/FileListingTest.php b/core/modules/file/tests/src/Functional/FileListingTest.php
index e5a121b1dcbd107caf3cdd24bc75fb0b241d365c..8268927600f6aabd03638eebf09837bee738d19d 100644
--- a/core/modules/file/tests/src/Functional/FileListingTest.php
+++ b/core/modules/file/tests/src/Functional/FileListingTest.php
@@ -56,7 +56,7 @@ protected function setUp(): void {
   /**
    * Calculates total count of usages for a file.
    *
-   * @param $usage array
+   * @param array $usage
    *   Array of file usage information as returned from file_usage subsystem.
    *
    * @return int