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
parent
88fd310dc2
commit
74781068ec
|
@ -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);
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue