Validity should be checked in appendZTypedList, appendArray, and probably also in __construct.
Description
Details
Event Timeline
Change 835731 had a related patch set uploaded (by David Martin; author: David Martin):
[mediawiki/extensions/WikiLambda@master] ZTypedList: check types of new elements in append methods
Change 835731 merged by David Martin:
[mediawiki/extensions/WikiLambda@master] ZTypedList: check types of new elements in append methods
Change 837119 had a related patch set uploaded (by David Martin; author: David Martin):
[mediawiki/extensions/WikiLambda@master] ZTypedList: check types of new elements in append methods
Change 837119 abandoned by David Martin:
[mediawiki/extensions/WikiLambda@master] ZTypedList: check types of new elements in constructor
Reason:
Per discussion in the ticket, we needn't do type checking in ZObject PHP constructors. The corrected calls to ZTypedList::buildType have been merged separately: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/844079