[wp-trac] [WordPress Trac] #50899: PHP 8.0: change `create_function()` to closure
WordPress Trac
noreply at wordpress.org
Thu Aug 13 12:32:19 UTC 2020
#50899: PHP 8.0: change `create_function()` to closure
-------------------------------------------+-------------------------------
Reporter: jrf | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Build/Test Tools | Version:
Severity: trivial | Resolution: fixed
Keywords: has-patch php8 has-unit-tests | Focuses: coding-standards
-------------------------------------------+-------------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"48790" 48790]:
{{{
#!CommitTicketReference repository="" revision="48790"
Code Modernization: Change `create_function()` in `phpunit/includes
/plural-form-function.php` to closure.
`create_function()` has been deprecated in PHP >= 7.2 and removed in PHP
8.
The only instance left in core was used in a test that was being skipped
on PHP >= 7.2. This allows the test to run again.
Follow-up to [41722], [41730].
Props jrf.
Fixes #50899.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50899#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list