Whitelist phpcs Squiz.Scope.MemberVarScope in PHPVersionCheck
authorUmherirrender <umherirrender_de.wp@web.de>
Tue, 7 Aug 2018 10:39:46 +0000 (12:39 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Tue, 7 Aug 2018 10:39:46 +0000 (12:39 +0200)
The class supports php4 and the visibility private does not work there.

Change-Id: I9cbffe437a1d1f4243f0b70bd881cdc8b8257537

.phpcs.xml
includes/PHPVersionCheck.php

index 2a34154..944c3e2 100644 (file)
@@ -22,7 +22,6 @@
                <exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
                <exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.SingleSpaceBeforeSingleLineComment" />
                <exclude name="Squiz.Scope.MethodScope.Missing" />
-               <exclude name="Squiz.Scope.MemberVarScope.Missing" />
        </rule>
        <rule ref="MediaWiki.NamingConventions.PrefixedGlobalFunctions">
                <properties>
index 8eda14a..70ad0b2 100644 (file)
@@ -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