Hi,
we are seeing PHP 8.4 deprecation notices coming from opis/string when UnicodeString is loaded.
Environment:
- PHP 8.4.x
opis/json-schema 2.6.0opis/string 2.1.0
The deprecations point to Opis\String\UnicodeString implementing ArrayAccess without the updated return types on:
Current methods appear to be:
publicfunction offsetSet($offset, $value) public function offsetUnset($offset) With PHP8.4 we get deprecation notices like: - Method "ArrayAccess::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in implementation "Opis\String\UnicodeString" now to avoid errors or add an explicit @return annotation to suppress this message. - Method "ArrayAccess::offsetUnset()" might add "void" as a native return type declaration in the future. Do the same in implementation "Opis\String\UnicodeString" now to avoid errors or add an explicit @return annotation to suppress this message. From our side this is reproducible while using opis/json-schema, because it pulls in opis/string.
Hi,
we are seeing PHP 8.4 deprecation notices coming from
opis/stringwhenUnicodeStringis loaded.Environment:
opis/json-schema2.6.0opis/string2.1.0The deprecations point to
Opis\String\UnicodeStringimplementingArrayAccesswithout the updated return types on:offsetSet()offsetUnset()Current methods appear to be: