[wp-trac] [WordPress Trac] #59231: Prepare for PHP 8.3

WordPress Trac noreply at wordpress.org
Wed Aug 30 10:49:41 UTC 2023


#59231: Prepare for PHP 8.3
--------------------------------------------+------------------------------
 Reporter:  jrf                             |       Owner:  (none)
     Type:  task (blessed)                  |      Status:  new
 Priority:  normal                          |   Milestone:  6.4
Component:  General                         |     Version:  trunk
 Severity:  normal                          |  Resolution:
 Keywords:  php83 has-patch has-unit-tests  |     Focuses:  php-
                                            |  compatibility
--------------------------------------------+------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"56492" 56492]:
 {{{
 #!CommitTicketReference repository="" revision="56492"
 Tests: Correct uses of `ReflectionProperty::setValue()` for static
 properties.

 The single parameter signature, which was used for setting the value on a
 static property, is deprecated since PHP 8.3. A cross-version solution is
 to pass `null` as the first parameter.

 This commit updates all the instances that use the deprecated signature in
 WordPress core.

 Reference:
 [https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#reflectionpropertysetvalue
 PHP RFC: Deprecate functions with overloaded signatures:
 ReflectionProperty::setValue()].

 Follow-up to [53152], [54493], [54799].

 Props jrf, costdev, Tests: Correct uses of
 `ReflectionProperty::setValue()` for static properties.

 The single parameter signature, which was used for setting the value on a
 static property, is deprecated since PHP 8.3. A cross-version solution is
 to pass `null` as the first parameter.

 This commit updates all the instances that use the deprecated signature in
 WordPress core.

 Reference:
 [https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#reflectionpropertysetvalue
 PHP RFC: Deprecate functions with overloaded signatures:
 ReflectionProperty::setValue()].

 Follow-up to [53152], [54493], [54799].

 Props jrf, costdev, sc0ttkclark.
 See #59231.
 }}}

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


More information about the wp-trac mailing list