[wp-trac] [WordPress Trac] #59318: Block Themes: PHP 8.1 Deprecation notice passing null to non-nullable when referring to missing template parts (was: Block Themes Fatal Error in PHP 8.1 When Referring To Missing Template Parts)

WordPress Trac noreply at wordpress.org
Tue Jun 11 17:08:19 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 hellofromTonya):

 Modifying the title. The severity of the PHP error is a deprecation
 notice, rather than a fatal error in PHP 8.1+.

 PHP 8.1 introduced a deprecation for passing `null` to a `non-nullable`
 internal function parameter, such as `preg_replace()`.

 Ref: https://php.watch/versions/8.1/internal-func-non-nullable-null-
 deprecation

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


More information about the wp-trac mailing list