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:
parent
32852304d0
commit
abdc6893a6
213 changed files with 1129 additions and 1130 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue