File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 2626 */
2727class BitArray implements \ArrayAccess, \Countable, \IteratorAggregate, \JsonSerializable
2828{
29- /**
30- * @var BitArray Empty bit array
31- */
32- private static $ empty ;
33-
3429 /**
3530 * @var integer[] Number of bits for each value between 0 and 255
3631 */
@@ -85,10 +80,10 @@ protected function __construct($size = 0, $default = false)
8580 $ this ->size = (int ) $ size ;
8681
8782 if ($ default ) {
88- $ this ->data = str_repeat (chr (255 ), ceil ($ this ->size / 8 ));
83+ $ this ->data = str_repeat (chr (255 ), ( int ) ceil ($ this ->size / 8 ));
8984 $ this ->restrict ();
9085 } else {
91- $ this ->data = str_repeat (chr (0 ), ceil ($ this ->size / 8 ));
86+ $ this ->data = str_repeat (chr (0 ), ( int ) ceil ($ this ->size / 8 ));
9287 }
9388 }
9489
@@ -511,7 +506,7 @@ public static function fromDecimal($size, $values = 0)
511506 /**
512507 * Create a new BitArray from a traversable
513508 *
514- * @param \Traversable $traversable A traversable and countable
509+ * @param mixed $traversable A traversable and countable
515510 *
516511 * @return BitArray A new BitArray
517512 *
You can’t perform that action at this time.
0 commit comments