[buddypress-trac] [BuddyPress Trac] #8649: Improves PHP 8.1 compatibility

buddypress-trac noreply at wordpress.org
Sat Aug 13 08:58:58 UTC 2022


#8649: Improves PHP 8.1 compatibility
--------------------------------------+---------------------
 Reporter:  imath                     |       Owner:  imath
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  11.0.0
Component:  Core                      |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |
--------------------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13314" 13314]:
 {{{
 #!CommitTicketReference repository="" revision="13314"
 Fully enjoy Yoast’s PHPUnit polyfills

 Using these polyfills let us use PHPUnit v9.x for our tests and add PHP
 8.1 to our testing matrix. Some additional edits to our PHP unit tests
 suite were needed:

 - Stop using PHPunit deprecated functions.
 - Rename some `BP_UnitTestCase` methods to use Yoast's polyfills.
 - Edit the PHP Unit test GH action and also run this action on pull
 requests.
 - Update some composer dependencies, remove the one about
 `phpunit/phpunit:^7.5` and add a new composer script to use PHPUnit v9.x.

 Props renatonascalves, rafiahmedd

 Closes https://github.com/buddypress/buddypress/pull/13
 Fixes #8649
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8649#comment:21>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list