Skip to content

Commit 1a1f91e

Browse files
committed
Use short syntax for bits operation
1 parent d318e46 commit 1a1f91e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/QafooLabs/Refactoring/Domain/Model/MethodSignature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private function change($flags)
4343
$allowedVisibilities = array(self::IS_PRIVATE, self::IS_PROTECTED, self::IS_PUBLIC);
4444

4545
if (($flags & $visibility) === 0) {
46-
$flags = $flags | self::IS_PRIVATE;
46+
$flags |= self::IS_PRIVATE;
4747
}
4848

4949
if ( ! in_array(($flags & $visibility), $allowedVisibilities)) {

0 commit comments

Comments
 (0)