Page MenuHomePhabricator

Parsoid should use Assert::UnreachableException
Closed, ResolvedPublic

Description

T247093: Add Assert::UnreachableException added Assert::UnreachableException (instead of Assert::unreachable() as I'd originally proposed). Parsoid should swap code which currently calls PHPUtils::unreachable() to throw new UnreachableException() once the next version of the wikimedia/assert library is released.

Event Timeline

ssastry triaged this task as Medium priority.Mar 24 2020, 4:31 AM
Jdforrester-WMF changed the task status from Stalled to In Progress.Dec 21 2021, 12:26 PM

Change 749168 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/services/parsoid@master] Switch uses of Assert:unreachable() to throwing an UnreachableException

https://gerrit.wikimedia.org/r/749168

Change 749168 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Switch uses of Assert:unreachable() to throwing an UnreachableException

https://gerrit.wikimedia.org/r/749168

Change 827533 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/vendor@master] Bump parsoid to 0.16.0-a20

https://gerrit.wikimedia.org/r/827533

Change 827533 merged by jenkins-bot:

[mediawiki/vendor@master] Bump parsoid to 0.16.0-a20

https://gerrit.wikimedia.org/r/827533