mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
more php 8.2 tweaks
This commit is contained in:
parent
6d89c50e43
commit
332252bacb
4 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ class Matrix implements ArrayAccess{
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function offsetExists($offset){
|
||||
return isset($this->matrix[(int) $offset]);
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ class NBT_new{
|
|||
$tag->read($this);
|
||||
break;
|
||||
case NBT::TAG_Enum:
|
||||
$tag = new Enum($this->getString());
|
||||
$tag = new EnumTag($this->getString());
|
||||
$tag->read($this);
|
||||
break;
|
||||
case NBT::TAG_Compound:
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
class Enum extends NamedTag implements \ArrayAccess, \Countable{
|
||||
class EnumTag extends NamedTag implements \ArrayAccess, \Countable{
|
||||
|
||||
private $tagType;
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ abstract class NamedTag extends Tag{
|
|||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param bool|float|double|int|byte|short|array|Compound|Enum|string $value
|
||||
* @param bool|float|double|int|byte|short|array|Compound|EnumTag|string $value
|
||||
*/
|
||||
public function __construct($name = "", $value = false){
|
||||
$this->name = $name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue