Skip to content

Commit 2648710

Browse files
authored
Fix return value of setter to allow chaining
1 parent 3677f0b commit 2648710

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BitwiseFlagTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function getFlag($name, $flag)
3131
* @param string $name
3232
* @param int $flag
3333
* @param $value
34-
* @return bool
34+
* @return $this
3535
*/
3636
protected function setFlag($name, $flag, $value)
3737
{
@@ -40,5 +40,7 @@ protected function setFlag($name, $flag, $value)
4040
} else {
4141
$this->$name &= ~$flag;
4242
}
43+
44+
return $this;
4345
}
4446
}

0 commit comments

Comments
 (0)