Page MenuHomePhabricator

Deprecate $options['specIsArg'] in favor of $spec['spec_is_arg']
Closed, ResolvedPublic

Description

$options['specIsArg'] is documented as

If set and truthy, default $spec['spec_is_arg'] = true if it is unset. This is mainly intended for backwards compatibility with existing code that uses a near-clone of ObjectFactory with those semantics.

However, this is only used in a single place, the construction of FileJournal objects. I suggest deprecating this functionality

Codesearch: https://codesearch.wmcloud.org/search/?q=specIsArg&i=nope&files=&repos=

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 634091 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] FileJournal: use spec_is_arg in ObjectFactory specs

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

Change 634091 abandoned by DannyS712:

[mediawiki/core@master] FileJournal: use spec_is_arg in ObjectFactory specs

Reason:

no longer needed

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

Can this be closed as invalid?

No, it still needs to be removed from the library, but thanks for the reminder

Change 863354 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/libs/ObjectFactory@master] [BREAKING CHANGE] drop `specIsArg` option

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

Change 863354 merged by jenkins-bot:

[mediawiki/libs/ObjectFactory@master] [BREAKING CHANGE] drop `specIsArg` option

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