From 81cfb348cb51c81d5a56bea388631c8a3926f7fa Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 6 Jun 2023 13:36:56 +0100 Subject: [PATCH] Always use the strict equality flag when using in_array Change-Id: I8ce7209c03bb054b2a9ad96c7d5897d081b4e27e --- includes/Hooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index 3e696087..f2f506f2 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -140,12 +140,12 @@ class Hooks implements */ public function onBeforePageDisplay( $out, $skin ): void { $unsupportedSkins = [ 'minerva', 'apioutput' ]; - if ( in_array( $skin->getSkinName(), $unsupportedSkins ) ) { + if ( in_array( $skin->getSkinName(), $unsupportedSkins, true ) ) { return; } // Soft dependency to Wikibase client. Don't enable CLL if links are managed manually. $excludedLinks = $out->getProperty( 'noexternallanglinks' ); - $override = is_array( $excludedLinks ) && in_array( '*', $excludedLinks ); + $override = is_array( $excludedLinks ) && in_array( '*', $excludedLinks, true ); $isCompactLinksEnabled = $this->isCompactLinksEnabled( $out->getUser(), $skin ); $config = [ 'wgULSPosition' => $this->config->get( 'ULSPosition' ),