diff --git a/composer/Composer.php b/composer/Composer.php
index 1c868ccac0de7c231288f4dec4516ed4e9ce4c12..448e5d8ad384dfc1940db863476b9eb59a426a7f 100644
--- a/composer/Composer.php
+++ b/composer/Composer.php
@@ -50,9 +50,6 @@ public static function generateComponentPackages(Event $event): void {
    * @param string $version
    *   Semver version to set Drupal's version to.
    *
-   * @return string
-   *   Stability level of the provided version (stable, RC, alpha, etc.)
-   *
    * @throws \UnexpectedValueException
    */
   public static function setDrupalVersion(string $root, string $version): void {
@@ -78,9 +75,6 @@ public static function setDrupalVersion(string $root, string $version): void {
    *   Path to root of drupal/drupal repository.
    * @param string $version
    *   Semver version that Drupal was set to.
-   *
-   * @return string
-   *   Stability level of the provided version (stable, RC, alpha, etc.)
    */
   protected static function setTemplateProjectStability(string $root, string $version): void {
     $stability = VersionParser::parseStability($version);
diff --git a/core/modules/views/tests/src/Unit/ViewsDataTest.php b/core/modules/views/tests/src/Unit/ViewsDataTest.php
index b30ff6480535a904880ac0bc2166c1e2c5c9bc61..0177af2b7ab2ebd2124daef59014da6d53e62aaf 100644
--- a/core/modules/views/tests/src/Unit/ViewsDataTest.php
+++ b/core/modules/views/tests/src/Unit/ViewsDataTest.php
@@ -128,8 +128,6 @@ protected function viewsDataWithProvider() {
 
   /**
    * Mocks the basic module handler used for the test.
-   *
-   * @return \Drupal\Core\Extension\ModuleHandlerInterface|\PHPUnit\Framework\MockObject\MockObject
    */
   protected function setupMockedModuleHandler(): void {
     $this->moduleHandler->expects($this->atLeastOnce())