diff --git a/src/math/Matrix.php b/src/math/Matrix.php index 46c60568..d3030874 100644 --- a/src/math/Matrix.php +++ b/src/math/Matrix.php @@ -20,7 +20,7 @@ class Matrix implements ArrayAccess{ } } } - + #[\ReturnTypeWillChange] public function offsetExists($offset){ return isset($this->matrix[(int) $offset]); diff --git a/src/nbt/NBT_new.php b/src/nbt/NBT_new.php index 9352c969..e597d46f 100644 --- a/src/nbt/NBT_new.php +++ b/src/nbt/NBT_new.php @@ -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: diff --git a/src/nbt/tag/Enum.php b/src/nbt/tag/EnumTag.php similarity index 98% rename from src/nbt/tag/Enum.php rename to src/nbt/tag/EnumTag.php index 8572dde4..4c1810ff 100644 --- a/src/nbt/tag/Enum.php +++ b/src/nbt/tag/EnumTag.php @@ -19,7 +19,7 @@ * */ -class Enum extends NamedTag implements \ArrayAccess, \Countable{ +class EnumTag extends NamedTag implements \ArrayAccess, \Countable{ private $tagType; diff --git a/src/nbt/tag/NamedTag.php b/src/nbt/tag/NamedTag.php index f3536e8c..690b149d 100644 --- a/src/nbt/tag/NamedTag.php +++ b/src/nbt/tag/NamedTag.php @@ -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;