mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 07:11:04 +01:00
Skip "null" lines when constructing raw documents for DocumentEngine rendering
Summary: See <https://discourse.phabricator-community.org/t/more-exceptions-when-viewing-diffs/3789>. This is a similar issue with the same datastructure. Test Plan: Works correctly under PHP 7.3, but this may not be the end of things. Differential Revision: https://secure.phabricator.com/D21171
This commit is contained in:
parent
a226d74133
commit
7355bb7f29
1 changed files with 5 additions and 1 deletions
|
@ -1901,9 +1901,13 @@ final class DifferentialChangesetParser extends Phobject {
|
|||
$text = array();
|
||||
|
||||
foreach ($lines as $line) {
|
||||
if ($line === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// If this is a "No newline at end of file." annotation, don't hand it
|
||||
// off to the DocumentEngine.
|
||||
if ($line['type'] == '\\') {
|
||||
if ($line['type'] === '\\') {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue