Verified Commit 28fafec1 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3322763 by Spokje: Fix PHPStan L2 error "PHPDoc tag @return with type...

Issue #3322763 by Spokje: Fix PHPStan L2 error "PHPDoc tag @return with type Foo is incompatible with native type void."

(cherry picked from commit 81b8c869)
parent 6f71312b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -38,9 +38,6 @@ public static function generateMetapackages(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 {
@@ -66,9 +63,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);
+0 −2
Original line number Diff line number Diff line
@@ -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())