[wp-trac] [WordPress Trac] #59318: Block Themes: PHP 8.1 Deprecation notice passing null to non-nullable when referring to missing template parts

WordPress Trac noreply at wordpress.org
Thu Jun 13 02:36:04 UTC 2024


#59318: Block Themes:  PHP 8.1 Deprecation notice passing null to non-nullable when
referring to missing template parts
-------------------------------------------------+-------------------------
 Reporter:  TJNowell                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.6
Component:  Themes                               |     Version:  6.3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests php81       |     Focuses:  php-
  gutenberg-merge                                |  compatibility
-------------------------------------------------+-------------------------

Comment (by rajinsharwar):

 I have tested the PR 59318.
 Before NULL error:
 https://img001.prntscr.com/file/img001/XEHwnH_EQiKCYajwsGwnoQ.png
 After, no error 🙂:
 https://img001.prntscr.com/file/img001/ScyT3tFRRqavqkm8So_yVg.png ✅

 Also @hellofromTonya, the current PR seemed to be outdated compared to the
 trunk, so I have sent a new PR as a refresh. PR: 6794

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


More information about the wp-trac mailing list