Remove all assert() calls with string parameters
These fail when HHVM is in RepoAuthoritative mode Change-Id: Ifb1628f8269b2b651154b740b95cc14163a1b186
This commit is contained in:
parent
469a610c1b
commit
6a04d86149
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue