[wp-trac] [WordPress Trac] #54504: Update Requests library to version 2.0.0

WordPress Trac noreply at wordpress.org
Sat Oct 7 01:19:46 UTC 2023


#54504: Update Requests library to version 2.0.0
-------------------------------------------------+-------------------------
 Reporter:  jrf                                  |       Owner:
                                                 |  hellofromTonya
     Type:  task (blessed)                       |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.2
Component:  External Libraries                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  php80 php81 has-patch has-unit-      |     Focuses:
  tests early early-like-actually-early commit   |
  add-to-field-guide                             |
-------------------------------------------------+-------------------------
Changes (by afragen):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 I appreciate that  this ticket is closed and all references to the
 following issue that I currently have are marked as duplicates of this
 ticket.

 == Bug Report
 === Description
 Still getting numerous `PHP Deprecated` notices in my error log from
 `Requests`

 === Environment
 - WordPress: 6.4-beta2-56791
 - PHP: 8.1.16
 - Server: nginx/1.22.0
 - Database: mysqli (Server: 8.0.30 / Client: 8.1.16)
 - Browser: Safari 17.0
 - OS: macOS
 - Theme: Frost 1.0.5
 - MU Plugins:
   * SpinupWP Debug Log Path 1.0
   * Test MU
 - Plugins:
   * Add Custom Header Images 2.3.3
   * Auto-Flush Object Cache 0.7.0
   * Core Rollback 1.3.5
   * Embed PDF Viewer 2.3.1
   * Git Remote Updater 3.1.1
   * Git Updater - Bitbucket 2.0.3
   * Git Updater - Gist 2.0.3
   * Git Updater - GitLab 2.0.3
   * Git Updater 12.3.0.2
   * Handbook Callout Blocks 1.0.0-beta5
   * Limit Login Attempts Reloaded 2.25.25
   * Local Development 2.8.3
   * Login Logout Primary Menu Item 0.5.0
   * oEmbed Gists and Files 1.0.1
   * Plugin Dependencies 3.0.0
   * Query Monitor 3.13.1
   * RAU Edge Case - Defining Class in main plugin file. 0.1.0
   * RAU Edge Case - Defining Constants in main plugin file. 0.1.0
   * Rollback Update Failure 6.3.1
   * Site Testing 0.4
   * Skip Updates 1.2.0
   * SpinupWP 1.5.1
   * Stop Auto-update Success Email 0.2.0
   * Test Reports 0.3.1
   * Updates API Inspector 0.1.1
   * User Switching 1.7.0
   * What The Cron 0.1.2
   * WordPress Beta Tester 3.5.4
   * WP Author Slug 4
   * WP Crontrol 1.15.3
   * WP Debugging 2.11.22
   * WP Mail SMTP 3.9.0
   * WP Mail SMTP Settings 0.5.1
   * WP Site Tweaks 1.0.10

 === Steps to Reproduce
 Just running the site and updating plugins and core.

 === Expected Results
 No more PHP Deprecation notices

 === Actual Results

 {{{
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Cookie/Jar.php
 on line 63
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Cookie/Jar.php
 on line 73
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Cookie/Jar.php
 on line 89
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Cookie/Jar.php
 on line 102
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Cookie/Jar.php
 on line 111
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Utility/CaseInsensitiveDictionary.php
 on line 40
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Utility/CaseInsensitiveDictionary.php
 on line 51
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Utility/CaseInsensitiveDictionary.php
 on line 68
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Utility/CaseInsensitiveDictionary.php
 on line 82
 [06-Oct-2023 03:31:09 UTC] PHP 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 in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Utility/CaseInsensitiveDictionary.php
 on line 91
 [06-Oct-2023 03:31:09 UTC] PHP Deprecated: Return type of
 Requests_Utility_FilteredIterator::unserialize($serialized) should either
 be compatible with ArrayIterator::unserialize(string $data): void, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Utility/FilteredIterator.php
 on line 53
 [06-Oct-2023 03:31:09 UTC] PHP Deprecated: Return type of
 Requests_Utility_FilteredIterator::__unserialize($serialized) should
 either be compatible with ArrayIterator::__unserialize(array $data): void,
 or the #[\ReturnTypeWillChange] attribute should be used to temporarily
 suppress the notice in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Utility/FilteredIterator.php
 on line 60
 [06-Oct-2023 03:31:09 UTC] PHP Deprecated: Return type of
 Requests_Utility_FilteredIterator::current() should either be compatible
 with ArrayIterator::current(): mixed, or the #[\ReturnTypeWillChange]
 attribute should be used to temporarily suppress the notice in
 phar:///usr/local/bin/wp/vendor/rmccue/requests/library/Requests/Utility/FilteredIterator.php
 on line 40
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54504#comment:137>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list