Page MenuHomePhabricator

ZTypedList: check validity of new elements before adding them
Closed, ResolvedPublic

Description

Validity should be checked in appendZTypedList, appendArray, and probably also in __construct.

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

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

Change 835731 merged by David Martin:

[mediawiki/extensions/WikiLambda@master] ZTypedList: check types of new elements in append methods

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

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

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

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

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