Skip to content

Commit db2c8dc

Browse files
committed
Changing restrict
1 parent 806bca4 commit db2c8dc

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/BitArray/BitArray.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,7 @@ class BitArray implements \ArrayAccess, \Countable, \IteratorAggregate, \JsonSer
4848
/**
4949
* @var integer[] Mask for restricting complements
5050
*/
51-
private static $restrict = [
52-
(1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7),
53-
(1 << 0),
54-
(1 << 0) | (1 << 1),
55-
(1 << 0) | (1 << 1) | (1 << 2),
56-
(1 << 0) | (1 << 1) | (1 << 2) | (1 << 3),
57-
(1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4),
58-
(1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5),
59-
(1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6),
60-
];
51+
private static $restrict = [255, 1, 3, 7, 15, 31, 63, 127];
6152

6253
/**
6354
* @var string Underlying data

0 commit comments

Comments
 (0)