[wp-trac] [WordPress Trac] #58876: Calling get_class() without arguments is deprecated in class-wp-http.php

WordPress Trac noreply at wordpress.org
Mon Jul 24 11:27:39 UTC 2023


#58876: Calling get_class() without arguments is deprecated in class-wp-http.php
-----------------------------+---------------------
 Reporter:  ipajen           |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  6.4
Component:  HTTP API         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  php83 has-patch  |     Focuses:
-----------------------------+---------------------
Changes (by jrf):

 * milestone:  Awaiting Review => 6.4


Comment:

 Replying to [comment:5 ipajen]:
 > Yes using 8.3.0beta1 but if I understand it correctly "Calling
 get_class() without arguments is deprecated" in PHP8.1? Its confusing.

 No, it's not, but it will be deprecated in PHP 8.3.

 PHP 7.2
 [https://www.php.net/manual/en/migration72.incompatible.php#migration72.incompatible
 .no-null-to-get_class introduced a warning] about `get_class(null)`
 though, which became a fatal error in PHP 8.0. You might be confused with
 that ?

 https://3v4l.org/GI5Kc#veol


 > Could we try to make WordPress 6.4 beta ready for PHP 8.3? ;) Thanks!

 That's my intention for sure.

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


More information about the wp-trac mailing list