mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
hm why would i need attributes?
This commit is contained in:
parent
332252bacb
commit
c12f48b84b
3 changed files with 13 additions and 26 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue