We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c60f6e1 commit f7eb462Copy full SHA for f7eb462
src/Matrix.php
@@ -36,19 +36,19 @@ class Matrix implements \ArrayAccess{
36
private int $rows;
37
private int $columns;
38
39
- public function offsetExists($offset){
+ public function offsetExists($offset) : bool{
40
return isset($this->matrix[(int) $offset]);
41
}
42
43
public function offsetGet($offset){
44
return $this->matrix[(int) $offset];
45
46
47
- public function offsetSet($offset, $value){
+ public function offsetSet($offset, $value) : void{
48
$this->matrix[(int) $offset] = $value;
49
50
51
- public function offsetUnset($offset){
+ public function offsetUnset($offset) : void{
52
unset($this->matrix[(int) $offset]);
53
54
0 commit comments