Remove all assert() calls with string parameters

These fail when HHVM is in RepoAuthoritative mode

Change-Id: Ifb1628f8269b2b651154b740b95cc14163a1b186
This commit is contained in:
Tim Starling 2016-08-15 16:02:53 +10:00 committed by Legoktm
parent 469a610c1b
commit 6a04d86149
2 changed files with 2 additions and 2 deletions

View file

@ -539,7 +539,7 @@ class Preprocessor_DOM extends Preprocessor {
} elseif ( $found == 'line-end' ) {
$piece = $stack->top;
// A heading must be open, otherwise \n wouldn't have been in the search list
assert( '$piece->open == "\n"' );
assert( $piece->open === "\n" );
$part = $piece->getCurrentPart();
// Search back through the input to see if it has a proper close.
// Do this using the reversed string since the other solutions

View file

@ -475,7 +475,7 @@ class Preprocessor_Hash extends Preprocessor {
} elseif ( $found == 'line-end' ) {
$piece = $stack->top;
// A heading must be open, otherwise \n wouldn't have been in the search list
assert( '$piece->open == "\n"' );
assert( $piece->open === "\n" );
$part = $piece->getCurrentPart();
// Search back through the input to see if it has a proper close.
// Do this using the reversed string since the other solutions