Rework logic between CSSList::
parseList()
and parseListItem()
#1211
Labels
Milestone
CSSList::
parseList()
and parseListItem()
#1211
Currently
parseListItem()
returnsnull
to indicate that the end of the list has been reached, andfalse
to indicate that an invalid item was found but parsing of the remaining items should continue.This is confusing, and the mixed type return value does not work well with static analysis tools like PHPStan.
Perhaps instead
parseList()
should have the responsibility for checking for the end of the list itself.The text was updated successfully, but these errors were encountered: