Skip to content

Commit b2c9d88

Browse files
committed
Add type hints.
1 parent c7b9ba8 commit b2c9d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Vector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function dotProduct(self $other): float
7171
}
7272

7373
return array_sum(array_map(
74-
function ($a, $b) {
74+
function (float $a, float $b) {
7575
return $a * $b;
7676
},
7777
$this->toArray(),

0 commit comments

Comments
 (0)