From 991c76c0dcf6c76b0210db4413e48718fb2041a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio=20Rocha?= Date: Tue, 9 Jul 2024 11:25:33 +0100 Subject: [PATCH] fix phpcompatibility version parser --- composer.json | 2 +- ...Classes_ForbiddenAbstractPrivateMethods.md | 1 + ...ility_Keywords_ForbiddenNamesAsDeclared.md | 1 + ...ywords_ForbiddenNamesAsInvokedFunctions.md | 1 + ...mpatibility_Miscellaneous_ValidIntegers.md | 1 + .../PHPCompatibility_Upgrade_LowPHPCS.md | 1 + docs/description/description.json | 200 +---------- docs/patterns.json | 318 +----------------- 8 files changed, 34 insertions(+), 491 deletions(-) create mode 100644 docs/description/PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods.md create mode 100644 docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsDeclared.md create mode 100644 docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions.md create mode 100644 docs/description/PHPCompatibility_Miscellaneous_ValidIntegers.md create mode 100644 docs/description/PHPCompatibility_Upgrade_LowPHPCS.md diff --git a/composer.json b/composer.json index f4a3845d..51cb218d 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "magento/magento-coding-standard": "^32.0", "magento/marketplace-eqp": "^4.0.0", "pheromone/phpcs-security-audit": "^2.0.1", - "phpcompatibility/php-compatibility": "^9.3.5", + "phpcompatibility/php-compatibility": "9.3.5", "phpcompatibility/phpcompatibility-paragonie": "^1.3.3", "phpcompatibility/phpcompatibility-wp": "^2.1.5", "phpstan/phpdoc-parser": "^1.28.0", diff --git a/docs/description/PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods.md b/docs/description/PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods.md new file mode 100644 index 00000000..9927edcf --- /dev/null +++ b/docs/description/PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Classes): Forbidden Abstract Private Methods diff --git a/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsDeclared.md b/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsDeclared.md new file mode 100644 index 00000000..5ab769fb --- /dev/null +++ b/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsDeclared.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Keywords): Forbidden Names As Declared diff --git a/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions.md b/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions.md new file mode 100644 index 00000000..1124994b --- /dev/null +++ b/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Keywords): Forbidden Names As Invoked Functions diff --git a/docs/description/PHPCompatibility_Miscellaneous_ValidIntegers.md b/docs/description/PHPCompatibility_Miscellaneous_ValidIntegers.md new file mode 100644 index 00000000..c77f27ae --- /dev/null +++ b/docs/description/PHPCompatibility_Miscellaneous_ValidIntegers.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Miscellaneous): Valid Integers diff --git a/docs/description/PHPCompatibility_Upgrade_LowPHPCS.md b/docs/description/PHPCompatibility_Upgrade_LowPHPCS.md new file mode 100644 index 00000000..e0707dfb --- /dev/null +++ b/docs/description/PHPCompatibility_Upgrade_LowPHPCS.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Upgrade): Low PHPCS diff --git a/docs/description/description.json b/docs/description/description.json index b87c5d4a..d7dbb9ba 100644 --- a/docs/description/description.json +++ b/docs/description/description.json @@ -1571,12 +1571,8 @@ "description" : "Any scope openers except for switch statements should be indented 1 level. This includes classes, functions, and control structures.", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Attributes_NewAttributes", - "title" : "PHP Compatibility related issue (Attributes): New Attributes", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass", - "title" : "PHP Compatibility related issue (Classes): Forbidden Extending Final PHP Class", + "patternId" : "PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods", + "title" : "PHP Compatibility related issue (Classes): Forbidden Abstract Private Methods", "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Classes_NewAnonymousClasses", @@ -1590,34 +1586,14 @@ "patternId" : "PHPCompatibility_Classes_NewConstVisibility", "title" : "PHP Compatibility related issue (Classes): New Const Visibility", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewConstructorPropertyPromotion", - "title" : "PHP Compatibility related issue (Classes): New Constructor Property Promotion", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewFinalConstants", - "title" : "PHP Compatibility related issue (Classes): New Final Constants", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Classes_NewLateStaticBinding", "title" : "PHP Compatibility related issue (Classes): New Late Static Binding", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewReadonlyClasses", - "title" : "PHP Compatibility related issue (Classes): New Readonly Classes", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewReadonlyProperties", - "title" : "PHP Compatibility related issue (Classes): New Readonly Properties", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Classes_NewTypedProperties", "title" : "PHP Compatibility related issue (Classes): New Typed Properties", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_RemovedClasses", - "title" : "PHP Compatibility related issue (Classes): Removed Classes", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Classes_RemovedOrphanedParent", "title" : "PHP Compatibility related issue (Classes): Removed Orphaned Parent", @@ -1626,10 +1602,6 @@ "patternId" : "PHPCompatibility_Constants_NewConstants", "title" : "PHP Compatibility related issue (Constants): New Constants", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Constants_NewConstantsInTraits", - "title" : "PHP Compatibility related issue (Constants): New Constants In Traits", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Constants_NewMagicClassConstant", "title" : "PHP Compatibility related issue (Constants): New Magic Class Constant", @@ -1670,22 +1642,10 @@ "patternId" : "PHPCompatibility_ControlStructures_NewMultiCatch", "title" : "PHP Compatibility related issue (Control Structures): New Multi Catch", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_NewNonCapturingCatch", - "title" : "PHP Compatibility related issue (Control Structures): New Non Capturing Catch", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Extensions_RemovedExtensions", "title" : "PHP Compatibility related issue (Extensions): Removed Extensions", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods", - "title" : "PHP Compatibility related issue (Function Declarations): Abstract Private Methods", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Final Private Methods", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals", "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Parameter Shadow Super Globals", @@ -1722,30 +1682,10 @@ "patternId" : "PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations", "title" : "PHP Compatibility related issue (Function Declarations): New Return Type Declarations", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewTrailingComma", - "title" : "PHP Compatibility related issue (Function Declarations): New Trailing Comma", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods", "title" : "PHP Compatibility related issue (Function Declarations): Non Static Magic Methods", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit", - "title" : "PHP Compatibility related issue (Function Declarations): Removed Calling Destruct After Constructor Exit", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam", - "title" : "PHP Compatibility related issue (Function Declarations): Removed Implicitly Nullable Param", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam", - "title" : "PHP Compatibility related issue (Function Declarations): Removed Optional Before Required Param", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid", - "title" : "PHP Compatibility related issue (Function Declarations): Removed Return By Reference From Void", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_FunctionNameRestrictions_NewMagicMethods", "title" : "PHP Compatibility related issue (Function Name Restrictions): New Magic Methods", @@ -1782,10 +1722,6 @@ "patternId" : "PHPCompatibility_FunctionUse_NewFunctions", "title" : "PHP Compatibility related issue (Function Use): New Functions", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_NewNamedParameters", - "title" : "PHP Compatibility related issue (Function Use): New Named Parameters", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters", "title" : "PHP Compatibility related issue (Function Use): Optional To Required Function Parameters", @@ -1830,14 +1766,6 @@ "patternId" : "PHPCompatibility_InitialValue_NewHeredoc", "title" : "PHP Compatibility related issue (Initial Value): New Heredoc", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_InitialValue_NewNewInDefine", - "title" : "PHP Compatibility related issue (Initial Value): New New In Define", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_InitialValue_NewNewInInitializers", - "title" : "PHP Compatibility related issue (Initial Value): New New In Initializers", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", "title" : "PHP Compatibility related issue (Interfaces): Internal Interfaces", @@ -1846,10 +1774,6 @@ "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", "title" : "PHP Compatibility related issue (Interfaces): New Interfaces", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Interfaces_RemovedSerializable", - "title" : "PHP Compatibility related issue (Interfaces): Removed Serializable", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", "title" : "PHP Compatibility related issue (Keywords): Case Sensitive Keywords", @@ -1858,6 +1782,14 @@ "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", "title" : "PHP Compatibility related issue (Keywords): Forbidden Names", "parameters" : [ ] +}, { + "patternId" : "PHPCompatibility_Keywords_ForbiddenNamesAsDeclared", + "title" : "PHP Compatibility related issue (Keywords): Forbidden Names As Declared", + "parameters" : [ ] +}, { + "patternId" : "PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions", + "title" : "PHP Compatibility related issue (Keywords): Forbidden Names As Invoked Functions", + "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Keywords_NewKeywords", "title" : "PHP Compatibility related issue (Keywords): New Keywords", @@ -1907,24 +1839,8 @@ "title" : "PHP Compatibility related issue (Miscellaneous): Removed Alternative PHP Tags", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Namespaces_ReservedNames", - "title" : "PHP Compatibility related issue (Namespaces): Reserved Names", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Numbers_NewExplicitOctalNotation", - "title" : "PHP Compatibility related issue (Numbers): New Explicit Octal Notation", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Numbers_NewNumericLiteralSeparator", - "title" : "PHP Compatibility related issue (Numbers): New Numeric Literal Separator", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings", - "title" : "PHP Compatibility related issue (Numbers): Removed Hexadecimal Numeric Strings", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Numbers_ValidIntegers", - "title" : "PHP Compatibility related issue (Numbers): Valid Integers", + "patternId" : "PHPCompatibility_Miscellaneous_ValidIntegers", + "title" : "PHP Compatibility related issue (Miscellaneous): Valid Integers", "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Operators_ChangedConcatOperatorPrecedence", @@ -1946,42 +1862,18 @@ "patternId" : "PHPCompatibility_Operators_RemovedTernaryAssociativity", "title" : "PHP Compatibility related issue (Operators): Removed Ternary Associativity", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ChangedIntToBoolParamType", - "title" : "PHP Compatibility related issue (Parameter Values): Changed Int To Bool Param Type", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ChangedObStartEraseFlags", - "title" : "PHP Compatibility related issue (Parameter Values): Changed Ob Start Erase Flags", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO", - "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Get Class No Args Outside OO", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNull", "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Get Class Null", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser", - "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Session Module Name User", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML", "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Strip Tags Self Closing XHTML", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar", - "title" : "PHP Compatibility related issue (Parameter Values): New Array Merge Recursive With Globals Var", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_ParameterValues_NewArrayReduceInitialType", "title" : "PHP Compatibility related issue (Parameter Values): New Array Reduce Initial Type", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewAssertCustomException", - "title" : "PHP Compatibility related issue (Parameter Values): New Assert Custom Exception", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_ParameterValues_NewFopenModes", "title" : "PHP Compatibility related issue (Parameter Values): New Fopen Modes", @@ -1990,10 +1882,6 @@ "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault", "title" : "PHP Compatibility related issue (Parameter Values): New HTML Entities Encoding Default", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesFlagsDefault", - "title" : "PHP Compatibility related issue (Parameter Values): New HTML Entities Flags Default", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_ParameterValues_NewHashAlgorithms", "title" : "PHP Compatibility related issue (Parameter Values): New Hash Algorithms", @@ -2010,10 +1898,6 @@ "patternId" : "PHPCompatibility_ParameterValues_NewNegativeStringOffset", "title" : "PHP Compatibility related issue (Parameter Values): New Negative String Offset", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewNumberFormatMultibyteSeparators", - "title" : "PHP Compatibility related issue (Parameter Values): New Number Format Multibyte Separators", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_ParameterValues_NewPCREModifiers", "title" : "PHP Compatibility related issue (Parameter Values): New PCRE Modifiers", @@ -2034,18 +1918,6 @@ "patternId" : "PHPCompatibility_ParameterValues_NewStripTagsAllowableTagsArray", "title" : "PHP Compatibility related issue (Parameter Values): New Strip Tags Allowable Tags Array", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedAssertStringAssertion", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Assert String Assertion", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedGetClassNoArgs", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Get Class No Args", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Get Defined Functions Exclude Disabled False", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_ParameterValues_RemovedHashAlgorithms", "title" : "PHP Compatibility related issue (Parameter Values): Removed Hash Algorithms", @@ -2058,18 +1930,6 @@ "patternId" : "PHPCompatibility_ParameterValues_RemovedImplodeFlexibleParamOrder", "title" : "PHP Compatibility related issue (Parameter Values): Removed Implode Flexible Param Order", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedLdapConnectSignatures", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Ldap Connect Signatures", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Check Encoding No Args", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Strim Width Negative Width", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam", "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Strrpos Encoding Third Param", @@ -2090,14 +1950,6 @@ "patternId" : "PHPCompatibility_ParameterValues_RemovedSetlocaleString", "title" : "PHP Compatibility related issue (Parameter Values): Removed Setlocale String", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Spl Autoload Register Throw False", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedVersionCompareOperators", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Version Compare Operators", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Syntax_ForbiddenCallTimePassByReference", "title" : "PHP Compatibility related issue (Syntax): Forbidden Call Time Pass By Reference", @@ -2118,10 +1970,6 @@ "patternId" : "PHPCompatibility_Syntax_NewDynamicAccessToStatic", "title" : "PHP Compatibility related issue (Syntax): New Dynamic Access To Static", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewFirstClassCallables", - "title" : "PHP Compatibility related issue (Syntax): New First Class Callables", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc", "title" : "PHP Compatibility related issue (Syntax): New Flexible Heredoc Nowdoc", @@ -2134,18 +1982,6 @@ "patternId" : "PHPCompatibility_Syntax_NewFunctionCallTrailingComma", "title" : "PHP Compatibility related issue (Syntax): New Function Call Trailing Comma", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewInterpolatedStringDereferencing", - "title" : "PHP Compatibility related issue (Syntax): New Interpolated String Dereferencing", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewMagicConstantDereferencing", - "title" : "PHP Compatibility related issue (Syntax): New Magic Constant Dereferencing", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewNestedStaticAccess", - "title" : "PHP Compatibility related issue (Syntax): New Nested Static Access", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Syntax_NewShortArray", "title" : "PHP Compatibility related issue (Syntax): New Short Array", @@ -2162,10 +1998,6 @@ "patternId" : "PHPCompatibility_TextStrings_NewUnicodeEscapeSequence", "title" : "PHP Compatibility related issue (Text Strings): New Unicode Escape Sequence", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_TextStrings_RemovedDollarBraceStringEmbeds", - "title" : "PHP Compatibility related issue (Text Strings): Removed Dollar Brace String Embeds", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_TypeCasts_NewTypeCasts", "title" : "PHP Compatibility related issue (Type Casts): New Type Casts", @@ -2178,6 +2010,10 @@ "patternId" : "PHPCompatibility_Upgrade_LowPHP", "title" : "PHP Compatibility related issue (Upgrade): Low PHP", "parameters" : [ ] +}, { + "patternId" : "PHPCompatibility_Upgrade_LowPHPCS", + "title" : "PHP Compatibility related issue (Upgrade): Low PHPCS", + "parameters" : [ ] }, { "patternId" : "PHPCompatibility_UseDeclarations_NewGroupUseDeclarations", "title" : "PHP Compatibility related issue (Use Declarations): New Group Use Declarations", @@ -2198,10 +2034,6 @@ "patternId" : "PHPCompatibility_Variables_NewUniformVariableSyntax", "title" : "PHP Compatibility related issue (Variables): New Uniform Variable Syntax", "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Variables_RemovedIndirectModificationOfGlobals", - "title" : "PHP Compatibility related issue (Variables): Removed Indirect Modification Of Globals", - "parameters" : [ ] }, { "patternId" : "PHPCompatibility_Variables_RemovedPredefinedGlobalVariables", "title" : "PHP Compatibility related issue (Variables): Removed Predefined Global Variables", diff --git a/docs/patterns.json b/docs/patterns.json index a4cf8f72..09606468 100644 --- a/docs/patterns.json +++ b/docs/patterns.json @@ -2465,14 +2465,7 @@ "languages" : [ ], "enabled" : true }, { - "patternId" : "PHPCompatibility_Attributes_NewAttributes", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass", + "patternId" : "PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], @@ -2499,20 +2492,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewConstructorPropertyPromotion", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewFinalConstants", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Classes_NewLateStaticBinding", "level" : "Warning", @@ -2520,20 +2499,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewReadonlyClasses", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewReadonlyProperties", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Classes_NewTypedProperties", "level" : "Warning", @@ -2541,13 +2506,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_RemovedClasses", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Classes_RemovedOrphanedParent", "level" : "Warning", @@ -2562,13 +2520,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_Constants_NewConstantsInTraits", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Constants_NewMagicClassConstant", "level" : "Warning", @@ -2639,13 +2590,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_NewNonCapturingCatch", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Extensions_RemovedExtensions", "level" : "Warning", @@ -2653,20 +2597,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals", "level" : "Warning", @@ -2730,13 +2660,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewTrailingComma", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods", "level" : "Warning", @@ -2744,34 +2667,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_FunctionNameRestrictions_NewMagicMethods", "level" : "Warning", @@ -2835,13 +2730,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_NewNamedParameters", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters", "level" : "Warning", @@ -2920,49 +2808,42 @@ "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_InitialValue_NewNewInDefine", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_InitialValue_NewNewInInitializers", + "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", + "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", + "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Interfaces_RemovedSerializable", + "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", + "patternId" : "PHPCompatibility_Keywords_ForbiddenNamesAsDeclared", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", + "patternId" : "PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], @@ -3053,35 +2934,7 @@ "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Namespaces_ReservedNames", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Numbers_NewExplicitOctalNotation", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Numbers_NewNumericLiteralSeparator", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Numbers_ValidIntegers", + "patternId" : "PHPCompatibility_Miscellaneous_ValidIntegers", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], @@ -3122,27 +2975,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ChangedIntToBoolParamType", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ChangedObStartEraseFlags", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNull", "level" : "Warning", @@ -3150,13 +2982,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML", "level" : "Warning", @@ -3164,13 +2989,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_ParameterValues_NewArrayReduceInitialType", "level" : "Warning", @@ -3178,13 +2996,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewAssertCustomException", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_ParameterValues_NewFopenModes", "level" : "Warning", @@ -3199,13 +3010,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesFlagsDefault", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_ParameterValues_NewHashAlgorithms", "level" : "Warning", @@ -3234,13 +3038,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewNumberFormatMultibyteSeparators", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_ParameterValues_NewPCREModifiers", "level" : "Warning", @@ -3276,27 +3073,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedAssertStringAssertion", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedGetClassNoArgs", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_ParameterValues_RemovedHashAlgorithms", "level" : "Warning", @@ -3318,27 +3094,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedLdapConnectSignatures", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam", "level" : "Warning", @@ -3374,20 +3129,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedVersionCompareOperators", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Syntax_ForbiddenCallTimePassByReference", "level" : "Warning", @@ -3423,13 +3164,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewFirstClassCallables", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc", "level" : "Warning", @@ -3451,27 +3185,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewInterpolatedStringDereferencing", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewMagicConstantDereferencing", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewNestedStaticAccess", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Syntax_NewShortArray", "level" : "Warning", @@ -3501,28 +3214,28 @@ "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_TextStrings_RemovedDollarBraceStringEmbeds", + "patternId" : "PHPCompatibility_TypeCasts_NewTypeCasts", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_TypeCasts_NewTypeCasts", + "patternId" : "PHPCompatibility_TypeCasts_RemovedTypeCasts", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_TypeCasts_RemovedTypeCasts", + "patternId" : "PHPCompatibility_Upgrade_LowPHP", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Upgrade_LowPHP", + "patternId" : "PHPCompatibility_Upgrade_LowPHPCS", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], @@ -3563,13 +3276,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "PHPCompatibility_Variables_RemovedIndirectModificationOfGlobals", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "PHPCompatibility_Variables_RemovedPredefinedGlobalVariables", "level" : "Warning",