hm why would i need attributes?

This commit is contained in:
GameHerobrine 2023-07-03 07:50:52 +03:00
parent 332252bacb
commit c12f48b84b
3 changed files with 13 additions and 26 deletions

View file

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