vobject icon indicating copy to clipboard operation
vobject copied to clipboard

Deprecation warnings on PHP 8.1

Open jokaorgua opened this issue 4 years ago • 1 comments

Hello. I'm using PHP 8.1.1 and lib version 4.4.1

I see the following deprecation warnings

1x: Method "ArrayAccess::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in implementation "Sabre\VObject\Node" now to avoid errors or add an explicit @return annotation to suppress this message.

  1x: Method "ArrayAccess::offsetUnset()" might add "void" as a native return type declaration in the future. Do the same in implementation "Sabre\VObject\Node" now to avoid errors or add an explicit @return annotation to suppress this message.

  1x: Method "ArrayAccess::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in implementation "Sabre\VObject\Property" now to avoid errors or add an explicit @return annotation to suppress this message.

  1x: Method "ArrayAccess::offsetUnset()" might add "void" as a native return type declaration in the future. Do the same in implementation "Sabre\VObject\Property" now to avoid errors or add an explicit @return annotation to suppress this message.

  1x: Method "ArrayAccess::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in implementation "Sabre\VObject\Property\ICalendar\DateTime" now to avoid errors or add an explicit @return annotation to suppress this message.

jokaorgua avatar Feb 10 '22 09:02 jokaorgua

Using php 8.1.2 and lib version 4.5.3 I see the above deprecations plus the following:

  1x: Method "ArrayIterator::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in child class "Sabre\VObject\ElementList" now to avoid errors or add an explicit @return annotation to suppress this message.


  1x: Method "ArrayIterator::offsetUnset()" might add "void" as a native return type declaration in the future. Do the same in child class "Sabre\VObject\ElementList" now to avoid errors or add an explicit @return annotation to suppress this message.


ovgray avatar Feb 21 '23 03:02 ovgray