Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc7e187

Browse files
committed
Added more types
1 parent 92abe7f commit cc7e187

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SparseVector.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(mixed $value, mixed $dimensions = null)
3535
}
3636
}
3737

38-
private function fromDense(array $value)
38+
private function fromDense(array $value): void
3939
{
4040
$this->dimensions = count($value);
4141
$this->indices = [];
@@ -49,7 +49,7 @@ private function fromDense(array $value)
4949
}
5050
}
5151

52-
private function fromMap(array $map, mixed $dimensions)
52+
private function fromMap(array $map, mixed $dimensions): void
5353
{
5454
$this->dimensions = intval($dimensions);
5555
$this->indices = [];
@@ -66,7 +66,7 @@ private function fromMap(array $map, mixed $dimensions)
6666
}
6767
}
6868

69-
private function fromString(string $value)
69+
private function fromString(string $value): void
7070
{
7171
$parts = explode('/', $value, 2);
7272

0 commit comments

Comments
 (0)