• Resolved Jonathan Jewell

    (@hyperpolymath)


    I switched to PHP8.1 and now getting tonnes of deprecation errors. They are all roughly the same, detected by Query Monitor plugin, and they look like this:

    Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

    There are two paths and several numbers for these, and that seems to be the only difference with that main message:

    wp-includes/Requests/Cookie/Jar.php:X
    wp-includes/Requests/Utility/CaseInsensitiveDictionary.php:Y (as in the above text)

    where X and Y are the numbered locations, and they are:

    X = 63, 73, 89, 102, 111
    Y = 40, 51, 68, 82, 91

    This is either for your information so that you can address it or if it is something I need to do, so you can tell me what I need to do. They look fairly easy to fix, but maybe this is something that someone else needs to fix in the main system (WP 5.9.2 on Apache) I am assuming these are not critical issues, but I think I should check and you should know!

    Kind regards,

    Jonathan

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘possible update errors with PHP8.1 – deprecation’ is closed to new replies.