1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Add void types where no return statement is present

This commit is contained in:
Jordi Boggiano 2022-02-18 10:38:54 +01:00
parent 32852304d0
commit abdc6893a6
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
213 changed files with 1129 additions and 1130 deletions

View file

@ -128,7 +128,7 @@ abstract class Rule
* @param RuleSet::TYPE_* $type
* @return void
*/
public function setType($type)
public function setType($type): void
{
$this->bitfield = ($this->bitfield & ~(255 << self::BITFIELD_TYPE)) | ((255 & $type) << self::BITFIELD_TYPE);
}
@ -144,7 +144,7 @@ abstract class Rule
/**
* @return void
*/
public function disable()
public function disable(): void
{
$this->bitfield = ($this->bitfield & ~(255 << self::BITFIELD_DISABLED)) | (1 << self::BITFIELD_DISABLED);
}
@ -152,7 +152,7 @@ abstract class Rule
/**
* @return void
*/
public function enable()
public function enable(): void
{
$this->bitfield &= ~(255 << self::BITFIELD_DISABLED);
}