Skip to content

Commit 7578c7f

Browse files
committed
fix: for php8.1
1 parent 9982db4 commit 7578c7f

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/ArrayMap.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,23 +277,19 @@ public function offsetGet($offset): array
277277
*
278278
* @param mixed $offset
279279
* @param mixed $value
280-
*
281-
* @return $this
282280
*/
283-
public function offsetSet($offset, $value): self
281+
public function offsetSet($offset, $value): void
284282
{
285-
return $this->set($offset, $value);
283+
$this->set($offset, $value);
286284
}
287285

288286
/**
289287
* unset($array[$key]).
290288
*
291289
* @param mixed $offset
292-
*
293-
* @return $this
294290
*/
295-
public function offsetUnset($offset): self
291+
public function offsetUnset($offset): void
296292
{
297-
return $this->delete($offset);
293+
$this->delete($offset);
298294
}
299295
}

src/BHDConverter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class BHDConverter
88
{
99
private $dict;
1010
private $patch;
11-
private $min_length;
1211

1312
public function __construct(
1413
$dict = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', // len:62
@@ -17,7 +16,6 @@ public function __construct(
1716
) {
1817
$this->dict = $dict;
1918
$this->patch = $patch;
20-
$this->min_length = $min_length;
2119
}
2220

2321
/**

0 commit comments

Comments
 (0)