Skip to content

Commit

Permalink
fix: for php8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed Jul 19, 2022
1 parent 9982db4 commit 7578c7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 4 additions & 8 deletions src/ArrayMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,23 +277,19 @@ public function offsetGet($offset): array
*
* @param mixed $offset
* @param mixed $value
*
* @return $this
*/
public function offsetSet($offset, $value): self
public function offsetSet($offset, $value): void
{
return $this->set($offset, $value);
$this->set($offset, $value);
}

/**
* unset($array[$key]).
*
* @param mixed $offset
*
* @return $this
*/
public function offsetUnset($offset): self
public function offsetUnset($offset): void
{
return $this->delete($offset);
$this->delete($offset);
}
}
2 changes: 0 additions & 2 deletions src/BHDConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class BHDConverter
{
private $dict;
private $patch;
private $min_length;

public function __construct(
$dict = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', // len:62
Expand All @@ -17,7 +16,6 @@ public function __construct(
) {
$this->dict = $dict;
$this->patch = $patch;
$this->min_length = $min_length;
}

/**
Expand Down

0 comments on commit 7578c7f

Please sign in to comment.