[wp-trac] [WordPress Trac] #56034: PHP 8.2: proposal for handling unknown dynamic properties deprecations

WordPress Trac noreply at wordpress.org
Thu Jul 14 22:49:31 UTC 2022


#56034: PHP 8.2: proposal for handling unknown dynamic properties deprecations
-------------------------------------+---------------------
 Reporter:  jrf                      |       Owner:  (none)
     Type:  task (blessed)           |      Status:  new
 Priority:  normal                   |   Milestone:  6.1
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  php82 early 2nd-opinion  |     Focuses:
-------------------------------------+---------------------

Comment (by peterwilsoncc):

 Replying to [comment:10 jrf]:
 > A generic solution via a trait would be problematic as, in that case,
 `private` and `protected` properties would no longer have any meaning as
 everything would become `public`.

 Of course, this makes sense.

 > I have a couple of PRs lined up to fix some of the currently existing
 magic methods in Core, which I will pull soonish.
 >
 > If the above explanation isn't clear, I think if you look those over,
 you will understand what I mean.

 All clear, thank you. Limiting the implementation to the two traits you
 describe makes sense to me.

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


More information about the wp-trac mailing list