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

(cherry picked from commit 81b8c86909)
merge-requests/2477/head
Alex Pott 2022-11-21 14:14:04 +00:00
parent 88fd310dc2
commit 74781068ec
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
2 changed files with 0 additions and 8 deletions

View File

@ -50,9 +50,6 @@ class Composer {
* @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 @@ class Composer {
* 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);

View File

@ -128,8 +128,6 @@ class ViewsDataTest extends UnitTestCase {
/**
* 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())