From 9e7ca073ea1f6cf1c20268a326c64469adf66f91 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Tue, 7 Aug 2018 12:39:46 +0200 Subject: [PATCH] Whitelist phpcs Squiz.Scope.MemberVarScope in PHPVersionCheck The class supports php4 and the visibility private does not work there. Change-Id: I9cbffe437a1d1f4243f0b70bd881cdc8b8257537 --- .phpcs.xml | 1 - includes/PHPVersionCheck.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.phpcs.xml b/.phpcs.xml index 2a34154689..944c3e20e1 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -22,7 +22,6 @@ - diff --git a/includes/PHPVersionCheck.php b/includes/PHPVersionCheck.php index 8eda14ad99..70ad0b29b1 100644 --- a/includes/PHPVersionCheck.php +++ b/includes/PHPVersionCheck.php @@ -19,6 +19,7 @@ */ // phpcs:disable Generic.Arrays.DisallowLongArraySyntax,PSR2.Classes.PropertyDeclaration,MediaWiki.Usage.DirUsage +// phpcs:disable Squiz.Scope.MemberVarScope.Missing,Squiz.Scope.MethodScope.Missing /** * Check PHP Version, as well as for composer dependencies in entry points, * and display something vaguely comprehensible in the event of a totally -- 2.20.1