Changed potentially misleading parameter name in CompoundTag->getTagValue()

This commit is contained in:
Dylan K. Taylor 2017-10-27 11:04:03 +01:00
parent 48fefae920
commit 747477dfcf

View File

@ -154,13 +154,13 @@ class CompoundTag extends NamedTag implements \ArrayAccess{
* tag is not of type $expectedType, an exception will be thrown. * tag is not of type $expectedType, an exception will be thrown.
* *
* @param string $name * @param string $name
* @param string $expectedType * @param string $expectedClass
* @param mixed $default * @param mixed $default
* *
* @return mixed * @return mixed
*/ */
public function getTagValue(string $name, string $expectedType, $default = null){ public function getTagValue(string $name, string $expectedClass, $default = null){
$tag = $this->getTag($name, $expectedType); $tag = $this->getTag($name, $expectedClass);
if($tag !== null){ if($tag !== null){
return $tag->getValue(); return $tag->getValue();
} }