WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/15/2020 02:54:23 PM (10 months ago)
Author:
desrosj
Message:

General: Continuing to work towards a passing PHP Compatibility scan.

  • Add phpcs:ignore statements to compatibility checks in PHPMailer.
  • Remove quotes around the assertion in an assert() call. This will trigger a deprecated notice under certain conditions on PHP 7.2.

Props jrf, desrosj.
See #49922, #48033.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/Text/Diff/Engine/shell.php

    r41686 r48045  
    8484            if ($from_line_no < $match[1] || $to_line_no < $match[4]) {
    8585                // copied lines
    86                 assert('$match[1] - $from_line_no == $match[4] - $to_line_no');
     86                assert($match[1] - $from_line_no == $match[4] - $to_line_no);
    8787                array_push($edits,
    8888                    new Text_Diff_Op_copy(
Note: See TracChangeset for help on using the changeset viewer.