mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 15:16:50 +00:00
PopupsContextTestWrapper: Remove null check for $gadgetsIntegration
$gadgetsIntegration can never be null. This is ensured by the PHP type check. Change-Id: Ia70e8b8b329ba771dcb8a98d4a78220c2f0f5fbf
This commit is contained in:
parent
9b78974f77
commit
c973491965
|
@ -42,7 +42,7 @@ class PopupsContextTestWrapper extends PopupsContext {
|
|||
*
|
||||
* @param Config $config MediaWiki config
|
||||
* @param ExtensionRegistry $extensionRegistry MediaWiki extension registry
|
||||
* @param PopupsGadgetsIntegration|null $gadgetsIntegration Gadgets integration helper
|
||||
* @param PopupsGadgetsIntegration $gadgetsIntegration Gadgets integration helper
|
||||
* @param UserOptionsLookup $userOptionsLookup
|
||||
*/
|
||||
public function __construct(
|
||||
|
@ -51,8 +51,7 @@ class PopupsContextTestWrapper extends PopupsContext {
|
|||
PopupsGadgetsIntegration $gadgetsIntegration,
|
||||
UserOptionsLookup $userOptionsLookup
|
||||
) {
|
||||
$gadgetsIntegration = $gadgetsIntegration ?:
|
||||
new PopupsGadgetsIntegration( $config, $extensionRegistry );
|
||||
$gadgetsIntegration = $gadgetsIntegration;
|
||||
|
||||
parent::__construct(
|
||||
$config,
|
||||
|
|
Loading…
Reference in a new issue