Always use the strict equality flag when using in_array

Change-Id: I8ce7209c03bb054b2a9ad96c7d5897d081b4e27e
This commit is contained in:
Ed Sanders
2023-06-06 13:36:56 +01:00
parent debd73e1e8
commit 81cfb348cb

View File

@@ -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' ),