php 8.1 fixs

This commit is contained in:
ArkQuark 2023-03-25 18:37:40 +03:00
parent 10c126b4d5
commit 9abba9a2a2
13 changed files with 90 additions and 11 deletions

View file

@ -21,18 +21,22 @@ class Matrix implements ArrayAccess{
}
}
public function offsetExists($offset){
#[\ReturnTypeWillChange]
public function offsetExists($offset){
return isset($this->matrix[(int) $offset]);
}
#[\ReturnTypeWillChange]
public function offsetGet($offset){
return $this->matrix[(int) $offset];
}
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value){
$this->matrix[(int) $offset] = $value;
}
#[\ReturnTypeWillChange]
public function offsetUnset($offset){
unset($this->matrix[(int) $offset]);
}