aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser
diff options
context:
space:
mode:
authorArlo Breault <abreault@wikimedia.org>2024-11-11 12:13:47 -0500
committerC. Scott Ananian <cscott@cscott.net>2024-11-11 12:36:30 -0500
commit7a96bbe32d4720a2b1fe7e5a89c41a56e2bce788 (patch)
tree606ad0a9a00b4c24bfbb2b7b4055f67596b04091 /includes/parser
parentbcce4c9b5656b8d2a51cdd1a46497a684ce18f7b (diff)
downloadmediawikicore-7a96bbe32d4720a2b1fe7e5a89c41a56e2bce788.tar.gz
mediawikicore-7a96bbe32d4720a2b1fe7e5a89c41a56e2bce788.zip
Bump wikimedia/parsoid to 0.21.0-a4
In the new release of parsoid the PageBundle::$html field is given a non-nullable type hint, which causes phan errors unless we update the tests. Bug: T379319 Depends-On: Ifb33cf12adda79c6b271ec0467975e2823f1c703 Change-Id: I753bbbfaf99fb486384b0fa97de71159abb504b3
Diffstat (limited to 'includes/parser')
-rw-r--r--includes/parser/Parsoid/HtmlToContentTransform.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/parser/Parsoid/HtmlToContentTransform.php b/includes/parser/Parsoid/HtmlToContentTransform.php
index 180e136fb932..4137d8465412 100644
--- a/includes/parser/Parsoid/HtmlToContentTransform.php
+++ b/includes/parser/Parsoid/HtmlToContentTransform.php
@@ -338,7 +338,7 @@ class HtmlToContentTransform {
* @return bool
*/
public function hasOriginalHtml(): bool {
- return $this->originalPageBundle->html !== null && $this->originalPageBundle->html !== '';
+ return $this->originalPageBundle->html !== '';
}
/**