release 1.3.21
This commit is contained in:
@@ -115,7 +115,7 @@ class TeamSpeak3_Adapter_ServerQuery_Event implements ArrayAccess
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
public function offsetExists($offset): bool
|
||||
{
|
||||
return array_key_exists($offset, $this->data) ? TRUE : FALSE;
|
||||
}
|
||||
@@ -123,6 +123,7 @@ class TeamSpeak3_Adapter_ServerQuery_Event implements ArrayAccess
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
if(!$this->offsetExists($offset))
|
||||
@@ -136,7 +137,7 @@ class TeamSpeak3_Adapter_ServerQuery_Event implements ArrayAccess
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
public function offsetSet($offset, $value): void
|
||||
{
|
||||
throw new TeamSpeak3_Node_Exception("event '" . $this->getType() . "' is read only");
|
||||
}
|
||||
@@ -144,7 +145,7 @@ class TeamSpeak3_Adapter_ServerQuery_Event implements ArrayAccess
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
public function offsetUnset($offset): void
|
||||
{
|
||||
unset($this->data[$offset]);
|
||||
}
|
||||
|
||||
@@ -469,7 +469,10 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
{
|
||||
if(!$this->isUtf8())
|
||||
{
|
||||
$this->string = utf8_encode($this->string);
|
||||
$this->string = iconv('ISO-8859-1', 'UTF-8', $this->string);
|
||||
#utf8_encode($this->string);
|
||||
#iconv('ISO-8859-1', 'UTF-8', $this->string);
|
||||
#mb_convert_encoding($this->string, 'UTF-8', mb_list_encodings());
|
||||
}
|
||||
|
||||
return $this;
|
||||
@@ -853,7 +856,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function count()
|
||||
public function count(): int
|
||||
{
|
||||
return strlen($this->string);
|
||||
}
|
||||
@@ -861,7 +864,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function rewind()
|
||||
public function rewind(): void
|
||||
{
|
||||
$this->position = 0;
|
||||
}
|
||||
@@ -869,7 +872,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function valid()
|
||||
public function valid(): bool
|
||||
{
|
||||
return $this->position < $this->count();
|
||||
}
|
||||
@@ -877,7 +880,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function key()
|
||||
public function key(): mixed
|
||||
{
|
||||
return $this->position;
|
||||
}
|
||||
@@ -885,7 +888,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function current()
|
||||
public function current(): mixed
|
||||
{
|
||||
return new TeamSpeak3_Helper_Char($this->string[$this->position]);
|
||||
}
|
||||
@@ -893,7 +896,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function next()
|
||||
public function next(): void
|
||||
{
|
||||
$this->position++;
|
||||
}
|
||||
@@ -901,7 +904,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
public function offsetExists($offset): bool
|
||||
{
|
||||
return ($offset < strlen($this->string)) ? TRUE : FALSE;
|
||||
}
|
||||
@@ -909,6 +912,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return ($this->offsetExists($offset)) ? new TeamSpeak3_Helper_Char($this->string[$offset]) : null;
|
||||
@@ -917,7 +921,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
public function offsetSet($offset, $value): void
|
||||
{
|
||||
if(!$this->offsetExists($offset)) return;
|
||||
|
||||
@@ -927,7 +931,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
public function offsetUnset($offset): void
|
||||
{
|
||||
if(!$this->offsetExists($offset)) return;
|
||||
|
||||
|
||||
@@ -474,7 +474,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function count()
|
||||
public function count(): int
|
||||
{
|
||||
$this->verifyNodeList();
|
||||
|
||||
@@ -484,7 +484,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function current()
|
||||
public function current(): mixed
|
||||
{
|
||||
$this->verifyNodeList();
|
||||
|
||||
@@ -494,7 +494,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function getChildren()
|
||||
public function getChildren(): ?RecursiveIterator
|
||||
{
|
||||
$this->verifyNodeList();
|
||||
|
||||
@@ -504,7 +504,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function hasChildren()
|
||||
public function hasChildren(): bool
|
||||
{
|
||||
$this->verifyNodeList();
|
||||
|
||||
@@ -524,7 +524,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function key()
|
||||
public function key(): mixed
|
||||
{
|
||||
$this->verifyNodeList();
|
||||
|
||||
@@ -534,7 +534,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function valid()
|
||||
public function valid(): bool
|
||||
{
|
||||
$this->verifyNodeList();
|
||||
|
||||
@@ -544,6 +544,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function next()
|
||||
{
|
||||
$this->verifyNodeList();
|
||||
@@ -554,6 +555,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function rewind()
|
||||
{
|
||||
$this->verifyNodeList();
|
||||
@@ -564,7 +566,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
public function offsetExists($offset): bool
|
||||
{
|
||||
return array_key_exists((string) $offset, $this->nodeInfo) ? TRUE : FALSE;
|
||||
}
|
||||
@@ -572,6 +574,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
if(!$this->offsetExists($offset))
|
||||
@@ -590,6 +593,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if(method_exists($this, "modify"))
|
||||
@@ -603,7 +607,7 @@ abstract class TeamSpeak3_Node_Abstract implements RecursiveIterator, ArrayAcces
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
public function offsetUnset($offset): void
|
||||
{
|
||||
unset($this->nodeInfo[(string) $offset]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user