Page MenuHomePhabricator

Add Context implementation containing multiple contexts
Open, MediumPublic

Description

This new context implementation wraps one or more contexts. storeCheckResultInArray is delegated to all wrapped contexts in turn; all other methods return their result on the first wrapped context. It’s in the responsibility of whoever instantiates the wrapped context that this is sound: for example, you can wrap multiple contexts for different statements as long as that context is only passed to constraint checkers that don’t use the statement (this will be used to implement T163683: Only check per-item constraints once, instead of with each statement).