Skip to content

Commit

Permalink
Bit-wise negation is needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Sep 4, 2024
1 parent 5a580c7 commit 3a9702d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StreamWrapper/NotWritableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected static function applyMask(array|false $result) : array|false {
return FALSE;
}

$result[2] = ($result['mode'] &= !0o222);
$result[2] = ($result['mode'] &= ~0o222);

return $result;
}
Expand Down

0 comments on commit 3a9702d

Please sign in to comment.