planetteamspeak / ts3phpframework

Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
https://www.planetteamspeak.com
GNU General Public License v3.0
212 stars 59 forks source link

[PHP 8.1] Deprecated return types #165

Closed danir-de closed 1 year ago

danir-de commented 2 years ago

On PHP 8.1 the following error occurs upon loading the script:

Deprecated: Return type of TeamSpeak3_Helper_String::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 904

Deprecated: Return type of TeamSpeak3_Helper_String::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 912

Deprecated: Return type of TeamSpeak3_Helper_String::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 920

Deprecated: Return type of TeamSpeak3_Helper_String::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 930

Deprecated: Return type of TeamSpeak3_Helper_String::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 888

Deprecated: Return type of TeamSpeak3_Helper_String::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 896

Deprecated: Return type of TeamSpeak3_Helper_String::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 880

Deprecated: Return type of TeamSpeak3_Helper_String::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 872

Deprecated: Return type of TeamSpeak3_Helper_String::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 864

Deprecated: Return type of TeamSpeak3_Helper_String::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /TeamSpeak3/Helper/String.php on line 856

Problem seems to related to a change described here.

Thomas-is-dev commented 2 years ago

same problem :(