[wp-trac] [WordPress Trac] #56620: Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated

WordPress Trac noreply at wordpress.org
Thu Sep 29 19:24:18 UTC 2022


#56620: Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type
string is deprecated
---------------------------------------------------+---------------------
 Reporter:  imadarshakshat                         |       Owner:  (none)
     Type:  defect (bug)                           |      Status:  new
 Priority:  normal                                 |   Milestone:  6.1
Component:  Formatting                             |     Version:  trunk
 Severity:  minor                                  |  Resolution:
 Keywords:  php81 has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------------+---------------------

Comment (by antonvlasenko):

 == Testing Instructions
 Steps to test https://github.com/WordPress/wordpress-develop/pull/3307:

 1. Go to https://github.com/WordPress/wordpress-develop/pull/3307.
 2. Make sure that the unit tests pass.
 3. Check the logs for the `PHPUnit Tests / 8.1 on ubuntu-latest
 (pull_request)` CI action, e.g.: https://github.com/WordPress/wordpress-
 develop/actions/runs/3153793903/jobs/5130675552
 4. Open the `Run PHPUnit tests` pane.
 5. Make sure you see no `strncmp(): Passing null to parameter #1
 ($string1) of type string is deprecated` errors in the log.

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


More information about the wp-trac mailing list