PHP API (v2) Deprecated Functions for PHP8

Lakjin

Active Member
I am using the latest PHP API on PHP8. It keeps throwing this error:

Code:
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/Params.php on line 89
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::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 ems-api/php-client/src/Params.php on line 318
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::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 ems-api/php-client/src/Params.php on line 329
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::offsetSet($offset, $item) 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 ems-api/php-client/src/Params.php on line 344
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::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 ems-api/php-client/src/Params.php on line 358
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/Params.php on line 99
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/Params.php on line 89
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::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 ems-api/php-client/src/Params.php on line 318
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::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 ems-api/php-client/src/Params.php on line 329
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::offsetSet($offset, $item) 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 ems-api/php-client/src/Params.php on line 344
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::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 ems-api/php-client/src/Params.php on line 358
[19-Feb-2023 05:55:01 UTC] PHP Deprecated:  Return type of EmsApi\Params::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/Params.php on line 99
[19-Feb-2023 05:55:02 UTC] PHP Deprecated:  Return type of EmsApi\ParamsIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/ParamsIterator.php on line 75
[19-Feb-2023 05:55:02 UTC] PHP Deprecated:  Return type of EmsApi\ParamsIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/ParamsIterator.php on line 86
[19-Feb-2023 05:55:02 UTC] PHP Deprecated:  Return type of EmsApi\ParamsIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/ParamsIterator.php on line 65
[19-Feb-2023 05:55:02 UTC] PHP Deprecated:  Return type of EmsApi\ParamsIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/ParamsIterator.php on line 96
[19-Feb-2023 05:55:02 UTC] PHP Deprecated:  Return type of EmsApi\ParamsIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ems-api/php-client/src/ParamsIterator.php on line 55
 
Back
Top