• rakesh1974

    (@rakesh1974)


    Prevent a PHP coding deprecation warning on PHP 8.1
    Getting the following errors in logs and does not show as complete pauses at 63%
    How can we resolve this problem? Please let us know.

    DEPRECATED: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    [17-Nov-2022 17:26:26] DEPRECATED: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    [17-Nov-2022 17:26:26] DEPRECATED: Return type of Requests_Cookie_Jar::offsetSet($key, $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
    [17-Nov-2022 17:26:26] DEPRECATED: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    [17-Nov-2022 17:26:26] DEPRECATED: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    [17-Nov-2022 17:26:26] DEPRECATED: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    [17-Nov-2022 17:26:26] DEPRECATED: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    [17-Nov-2022 17:26:26] DEPRECATED: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $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
    [17-Nov-2022 17:26:26] DEPRECATED: 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
    [17-Nov-2022 17:26:26] DEPRECATED: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support happyAnt

    (@duongcuong96)

    Hi there,
    We have updated the plugin to 4.0 , please help us update first then try again
    Thank you and have a great weekend!

    Thread Starter rakesh1974

    (@rakesh1974)

    I installed and tried version 4.0 on our website and that’s how the error shows… I think it is not compatible with version PHP 8.1…
    Can you please check again and let us know…

    Thread Starter rakesh1974

    (@rakesh1974)

    Reinstalled the new 4.0 but still, the error shows and does not proceed

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

    screenshot below

    https://snipboard.io/AS2qNg.jpg

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘deprecation warning’ is closed to new replies.