VisualAppeal / Matomo-PHP-API

PHP wrapper for the Matomo API.
MIT License
95 stars 33 forks source link

Deprecated warnings in PHP 8.2+ #51

Closed kfwebmaster closed 1 year ago

kfwebmaster commented 1 year ago

Using PHP 8.2.5, and getting some deprecated warnings:

Deprecated: Return type of Httpful\Headers::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 /*/vendor/voku/httpful/src/Httpful/Headers.php on line 189

Deprecated: Return type of Httpful\Headers::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 /*/vendor/voku/httpful/src/Httpful/Headers.php on line 204

Deprecated: Return type of Httpful\Headers::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 /*/vendor/voku/httpful/src/Httpful/Headers.php on line 219

Deprecated: Return type of Httpful\Headers::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 /*/vendor/voku/httpful/src/Httpful/Headers.php on line 231

Deprecated: Return type of Httpful\Headers::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /*/vendor/voku/httpful/src/Httpful/Headers.php on line 62

Deprecated: Return type of Httpful\Headers::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /*/vendor/voku/httpful/src/Httpful/Headers.php on line 72

Deprecated: Return type of Httpful\Headers::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /*/vendor/voku/httpful/src/Httpful/Headers.php on line 94

Deprecated: Return type of Httpful\Headers::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /*/vendor/voku/httpful/src/Httpful/Headers.php on line 82

Deprecated: Return type of Httpful\Headers::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /*/vendor/voku/httpful/src/Httpful/Headers.php on line 114

Deprecated: Return type of Httpful\Headers::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /*/vendor/voku/httpful/src/Httpful/Headers.php on line 104
Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in /*/index.php:16 Stack trace: #0 {main} thrown in /*/index.php on line 16
thelfensdrfer commented 1 year ago

I will try to release a new major version for PHP 8.2+ tomorrow.

anarzone commented 1 year ago

Any news for this release?

thelfensdrfer commented 1 year ago

Finally released! More in your other comment #52.