Skip to content

Commit 237739b

Browse files
committed
Fix some scrutinizer issue
1 parent 4c5f84a commit 237739b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/BitArray/BitArray.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
*/
2727
class 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
*

0 commit comments

Comments
 (0)