Skip to content

Update root-composer #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open

Update root-composer #4

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 31, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dealerdirect/phpcodesniffer-composer-installer (source) 1.0.0 -> 1.1.0 age adoption passing confidence
slevomat/coding-standard 8.13.2 -> 8.19.1 age adoption passing confidence
squizlabs/php_codesniffer 3.7.2 -> 3.13.2 age adoption passing confidence

Release Notes

PHPCSStandards/composer-installer (dealerdirect/phpcodesniffer-composer-installer)

v1.1.0

Compare Source

Changed
  • Various housekeeping, including improvements to the documentation and tests. Thanks @​SplotyCode, @​fredden for contributing!
Removed

New Contributors

Full Changelog: PHPCSStandards/composer-installer@v1.0.0...v1.1.0

slevomat/coding-standard (slevomat/coding-standard)

v8.19.1

Compare Source

🐛 Fixes

  • Fix properties detection in some sniffs
  • Improved indentation processing

v8.19.0

Compare Source

🔧 Improvements

  • Support of PHP 8.4 properties
    • Asymetric visibility supported
    • final/abstract properties supported
    • Property hooks should not break any sniff

🐛 Fixes

  • SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Fixed false positive
  • SlevomatCodingStandard.Classes.ClassMemberSpacing: Prevent deleting unexpected code/comments (thanks to @​maryo)
  • SlevomatCodingStandard.Complexity.Cognitive: do...while loop should only increment once (not for both the T_DO and T_WHILE) (thanks to @​bkdotcom)
  • SlevomatCodingStandard.TypeHints.ClassConstantTypeHint: New option fixableNativeTypeHint - it's possible to fix only private constants (thanks to @​maryo)
  • SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion: Properly autofixing when argument name has an attribute (thanks to @​maryo)

v8.18.1

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fix error when no code is found after @var (thanks to @​AegirLeet)
  • SlevomatCodingStandard.PHP.UselessParentheses: Fixed false positive for bitwise not operator

v8.18.0

Compare Source

🔧 Improvements

  • SlevomatCodingStandard.Classes.ClassStructure: Support for custom method groups based on method name prefix (thanks to @​maryo)

🐛 Fixes

  • SlevomatCodingStandard.Functions.RequireMultiLineCall: Fix reporting multiline call which exactly fits into line length limit (thanks to @​maryo)

v8.17.1

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.PropertyTypeHint: Fix

v8.17.0

Compare Source

🔧 Improvements

  • SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator: New option checkIfConditions

🐛 Fixes

  • SlevomatCodingStandard.Classes.MethodSpacing: Fixed check for methods with more attributes

v8.16.2

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.ReturnTypeHint: Fixed false positive
  • SlevomatCodingStandard.Variables.UnusedVariable: Fixed false positive
  • SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint: Fix logic error (thanks to @​jrfnl)

v8.16.1

Compare Source

🐛 Fixes

  • Fixed BC break

v8.16.0

Compare Source

⚠️

  • Drop PHP 7.2 and 7.3 support
  • Tested on PHP 8.4 but no support for PHP 8.4 features
  • Update to phpstan/phpdoc-parser 2.0 (thanks to @​ondrejmirtes)

🆕 New sniffs

  • SlevomatCodingStandard.TypeHints.ClassConstantTypeHint: Checks type hint of class constants (thanks to @​DaDeather)
  • SlevomatCodingStandard.TypeHints.DNFTypeHintFormat: Checks format of DNF type hints

🔧 Improvements

  • SlevomatCodingStandard.Classes.ClassStructure: Support for invoke method group
  • SlevomatCodingStandard.Classes.ClassStructure: Support for definition of custom groups (thanks to @​maryo)
  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: New option allowWhenNoNamespace
  • SlevomatCodingStandard.Classes.ForbiddenPublicProperty: New option allowReadonly - Add support for allowing public readonly properties (thanks to @​tfrommen)
  • SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint: Does not report error when attribute #[Override] is presented (thanks to @​kamil-zacek)
  • SlevomatCodingStandard.PHP.UselessParentheses: Checks useless parentheses in (new Foo());
  • Remove use of deprecated T_ARRAY_HINT (thanks to @​jrfnl)

🐛 Fixes

  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Some references were not detected
  • SlevomatCodingStandard.TypeHints.DeclareStrictTypes: Fixing number of empty lines when previous effective token before declare is line comment (thanks to @​maryo)
  • SlevomatCodingStandard.Classes.MethodSpacing: Fix check for method with attributes
  • SlevomatCodingStandard.Classes.PropertyDeclaration: Fixed false positives where there's function with static return type hint before property
  • SlevomatCodingStandard.ClassesEnumCaseSpacing: Fixed internal error (thanks to @​v.fateev)
  • SlevomatCodingStandard.ClassesConstantSpacing: Fixed internal error (thanks to @​v.fateev)
  • SlevomatCodingStandard.TypeHints.PropertyTypeHint: Fixed false positive for object shape as item in travesable type
  • SlevomatCodingStandard.ControlStructures.NewWithParentheses: Fixed false positive for readonly anonymous class
  • SlevomatCodingStandard.ControlStructures.DisallowYodaComparison: Fixed fixer
  • SlevomatCodingStandard.PHPUselessParentheses: Fixed false positive
  • SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking: sprintf() is optimized too
  • Documentation fixes (thanks to @​edpittol and @​tfrommen)

🗑️ Deprecated

  • SlevomatCodingStandard.TypeHints.UnionTypeHintFormat: Use SlevomatCodingStandard.TypeHints.DNFTypeHintFormat instead

v8.15.0

Compare Source

🔧 Improvements

  • Speedup of sniffs working with use
  • Removed for a long time deprecated FunctionLength sniff in Files namespace

🐛 Fixes

  • SlevomatCodingStandard.Classes.ClassConstantVisibility: Fixed error message for typed constants
  • SlevomatCodingStandard.Namespaces.UnusedUses: Fixed false positive thanks to PHPCS upgrade
  • SlevomatCodingStandard.Namespaces.UnusedUses: Fix class detection in double-quoted strings and heredoc (thanks to @​c01l)
  • SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch: Fixed false positives
  • SlevomatCodingStandard.Functions.RequireTrailingCommaInCall: Fixed missing report for missing trailing comma after arrow function
  • SlevomatCodingStandard.Commenting.UselessFunctionDocComment: It should report simple array as useless
  • Fixed internal error in CommentHelper

v8.14.1

Compare Source

🐛 Fixes

v8.14.0

Compare Source

🆕 New sniffs

  • SlevomatCodingStandard.Functions.NamedArgumentSpacing: Checks spacing in named argument (thanks to @​mzk)

🔧 Improvements

  • SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses: If the file contains a group use then ignore the file completely (thanks to @​jonathan1055)
  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: New option ignoredAnnotationNames (thanks to @​gemal)

🐛 Fixes

  • SlevomatCodingStandard.ControlStructures.AssignmentInCondition: Prevent error during live coding (thanks to @​jrfnl)
  • SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition: Prevent error during live coding (thanks to @​jrfnl)
  • SlevomatCodingStandard.PHP.UselessParentheses: Prevent error during live coding (thanks to @​jrfnl)
  • SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation: Recognize global statements (thanks to @​jrfnl)
  • SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants: Don't treat a group use as a constant (thanks to @​asispts)
  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Fixed false positives
  • SlevomatCodingStandard.Classes.ConstantSpacing: Fixed internal error
  • SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fixed false positive for final constant
  • SlevomatCodingStandard.Namespaces.UnusedUses: Ignores uses in annotations with multi lines string arguments (thanks to @​mathroc)
  • NamespaceHelper::getAllNamespacesPointers(): Allow for namespace tokens used as operator (thanks to @​jrfnl)

v8.13.4

Compare Source

🐛 Fixes

  • Fixed detection of {@​inheritdoc}

v8.13.3

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.Commenting.DocCommentSpacing: Fixed internal error for invalid doccomment
PHPCSStandards/PHP_CodeSniffer (squizlabs/php_codesniffer)

v3.13.2

Compare Source

Changed
  • The documentation for the following sniffs has been improved:
    • Squiz.Classes.SelfMemberReference
    • Thanks to [Rodrigo Primo][@​rodrigoprimo] for the patch.
  • Various housekeeping, including improvements to the tests and documentation.
Fixed
  • Fixed bug #​1135 : Squiz.Functions.FunctionDeclarationArgumentSpacing: typo in new error code SpacingAfterSetVis\[i\]bility.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.

v3.13.1

Compare Source

Added
  • Added support for PHP 8.4 properties with asymmetric visibility to File::getMemberProperties() through a new set_scope array index in the return value. #​1116
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches.
  • Added support for PHP 8.4 (constructor promoted) properties with asymmetric visibility to File::getMethodParameters() through new set_visibility and set_visibility_token array indexes in the return value. #​1116
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches.
  • Added support for PHP 8.4 asymmetric visibility modifiers to the following sniffs:
    • Generic.PHP.LowerCaseKeyword #​1117
    • PEAR.NamingConventions.ValidVariableName #​1118
    • PSR2.Classes.PropertyDeclaration #​1119
    • Squiz.Commenting.BlockComment #​1120
    • Squiz.Commenting.DocCommentAlignment #​1120
    • Squiz.Commenting.VariableComment #​1120
    • Squiz.Functions.FunctionDeclarationArgumentSpacing #​1121
    • Squiz.Scope.MemberVarScope #​1122
    • Squiz.WhiteSpace.MemberVarSpacing #​1123
    • Squiz.WhiteSpace.ScopeKeywordSpacing #​1124
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches.
Changed
  • The PSR2.Classes.PropertyDeclaration will now check that a set-visibility modifier keyword is placed after a potential general visibility keyword. #​1119
    • Errors will be reported via a new AvizKeywordOrder error code.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • The Squiz.Functions.FunctionDeclarationArgumentSpacing will now check spacing after a set-visibility modifier keyword. #​1121
    • Errors will be reported via a new SpacingAfterSetVisibility error code.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • The Squiz.Scope.MemberVarScope will now flag missing "read" visibility, when "write" visibility is set, under a separate error code AsymReadMissing. #​1122
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • The documentation for the following sniffs has been improved:
    • PEAR.Classes.ClassDeclaration
    • Squiz.WhiteSpace.FunctionOpeningBraceSpace
    • Thanks to [Brian Dunne][@​braindawg] and [Rodrigo Primo][@​rodrigoprimo] for the patches.
  • Various housekeeping, including improvements to the tests and documentation.
Other
  • The latest PHP_CodeSniffer XSD file is now available via the following permalink: https://schema.phpcodesniffer.com/phpcs.xsd. #​1094
    Older XSD files can be referenced via permalinks based on their minor: https://schema.phpcodesniffer.com/#.#/phpcs.xsd.
  • The GPG signature for the PHAR files has been rotated. The new fingerprint is: D91D869.

v3.13.0

Compare Source

Added
  • Added support for PHP 8.4 asymmetric visibility modifiers to the tokenizer. #​871
  • Added support for PHP 8.4 final properties to the following sniffs:
    • PSR2.Classes.PropertyDeclaration #​950
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches.
Changed
  • Generic.WhiteSpace.LanguageConstructSpacing: will now also check the spacing after the goto language construct keyword. #​917
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • The PSR2.Classes.PropertyDeclaration will now check that the final modifier keyword is placed before a visibility keyword. #​950
    • Errors will be reported via a new FinalAfterVisibility error code.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Improved Help information about the --reports CLI flag. #​1078
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • The documentation for the following sniffs has been improved:
    • PSR1.Files.SideEffects
    • PSR2.ControlStructures.SwitchDeclaration
    • PSR2.Namespaces.NamespaceDeclaration
    • Thanks to [Rodrigo Primo][@​rodrigoprimo] for the patches.
  • Various housekeeping, including improvements to the tests and documentation.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for their contributions.
Deprecated
  • Nearly everything which was soft deprecated before is now hard deprecated and will show deprecation notices:
    • This applies to:
      • All sniffs which will be removed in 4.0. #​888
      • The deprecated Generator methods. #​889
      • The old array property setting format (via comma separated strings). #​890
      • Sniffs not implementing the PHP_CodeSniffer\Sniffs\Sniff interface. #​891
      • Sniffs not following the naming conventions. #​892
      • Standards called Internal. #​893
      • Sniffs which don't listen for PHP, like JS/CSS specific sniffs. #​894
    • The deprecation notices can be silenced by using the -q (=quiet) CLI flag.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches.
Fixed
  • Fixed bug #​1040 : Generic.Strings.UnnecessaryHeredoc - false positive for heredocs containing escape sequences.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​1040 : Generic.Strings.UnnecessaryHeredoc - fixer would not clean up escape sequences which aren't necessary in nowdocs.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​1048 : A file under scan would sometimes be updated with partial fixes, even though the file "failed to fix".
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
Other

Calling all testers!

The first beta release for PHP_CodeSniffer 4.0 has been tagged. Please help by testing the beta release and reporting any issues you run into.
Upgrade guides for both ruleset maintainers/end-users, as well as for sniff developers and integrators, have been published to the Wiki to help smooth the transition.

v3.12.2

Compare Source

Added
  • Added support for PHP 8.4 final properties to the following sniffs:
    • Generic.PHP.LowerCaseConstant #​948
    • Generic.PHP.UpperCaseConstant #​948
    • Squiz.Commenting.DocCommentAlignment #​951
    • Squiz.Commenting.VariableComment #​949
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches.
Changed
  • Tokenizer/PHP: a PHP open tag at the very end of a file will now always be tokenized as T_OPEN_TAG, independently of the PHP version. #​937
    • Previously, a PHP open tag at the end of a file was not tokenized as an open tag on PHP < 7.4 and the tokenization would depend on the short_open_tag setting.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • PEAR.Commenting.FunctionComment: improved message for "blank lines between docblock and declaration" check. #​830
  • The documentation for the following sniffs has been improved:
    • Generic.Functions.OpeningFunctionBraceBsdAllman
    • Generic.Functions.OpeningFunctionBraceKernighanRitchie
    • Generic.WhiteSpace.LanguageConstructSpacing
    • Thanks to [Rodrigo Primo][@​rodrigoprimo] for the patches.
  • Various housekeeping, including improvements to the tests and documentation.
Fixed
  • Fixed bug #​830 : PEAR.Commenting.FunctionComment will no longer remove blank lines within attributes.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​929 : Generic.PHP.ForbiddenFunctions: prevent false positives/negatives for code interlaced with comments.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​934 : Generic.PHP.LowerCaseConstant and Generic.PHP.UpperCaseConstant will now correctly ignore DNF types for properties.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​936 : Squiz.Commenting.FunctionCommentThrowTag: sniff would bow out when function has attributes attached, leading to false negatives.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​940 : Squiz.Commenting.VariableComment: false positive for missing docblock for properties using DNF types.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​944 : Squiz.Commenting.FunctionComment did not support DNF/intersection types in @param tags.
    • Thanks to [Jeffrey Angenent][@​devfrey] for the patch.
  • Fixed bug #​945 : Squiz.WhiteSpace.FunctionSpacing would get confused when there are two docblocks above a function declaration.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​947 : Squiz.Commenting.FunctionCommentThrowTag: prevent false positives/negatives for code interlaced with comments.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​951 : Squiz.Commenting.DocCommentAlignment did not examine docblocks for final classes.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​955 : Potential race condition, leading to a fatal error, when both the Diff + the Code reports are requested and caching is on.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​956 : Generic.WhiteSpace.ScopeIndent: undefined array index notice when running in debug mode.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.

v3.12.1

Compare Source

Added
  • Documentation for the following sniffs:
    • Squiz.Commenting.BlockComment
    • Thanks to [Colin Stewart][@​costdev] for the patch.
Changed
  • Generic.WhiteSpace.HereNowdocIdentifierSpacing: improved error message text.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Various housekeeping, including improvements to the tests and documentation.
Deprecated
  • The Generic.Functions.CallTimePassByReference sniff. See #​921.
    • This sniff will be removed in version 4.0.0.
Fixed
  • Fixed bug #​906 : Fixer: prevent InvalidArgumentExceptions when displaying verbose information.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​907 : Tokenizer/PHP: tokenization of tokens related to union, intersection and DNF types in combination with PHP 8.4 final properties.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​908 : Tokenizer/PHP: tokenization of ? in nullable types for readonly properties.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​916 : Tokenizer/PHP: goto was not recognized as a terminating statement for a case/default in a switch control structure.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
Other
  • PHP_CodeSniffer 4.0 is coming soon! Interested in a sneak peek ? Join the live stream at any time on April 14, 15, 17 or 18.
    Read the open invitation (#​924) for all the details.

v3.12.0

Compare Source

Added
  • Added support for PHP 8.4 final properties to File::getMemberProperties() through a new is_final array index in the return value. #​834
  • Generators/HTML: each section title now has a unique anchor link, which can be copied when hovering over a title. #​859
    • This should make sharing a link to a specific section of the documentation more straight-forward.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Documentation for the following sniffs:
    • Squiz.Classes.ClassFileName
    • Squiz.Classes.ValidClassName
    • Thanks to [Brian Dunne][@​braindawg] for the patches.
Changed
  • PHPCBF: the messaging when no fixable errors are found will now distinguish between "No violations" (at all) versus "No fixable errors". #​806
  • The -h (Help) option now contains a more extensive list of "config" options which can be set. #​809
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Improved error message when invalid sniff codes are supplied to --sniffs or --exclude command line arguments. #​344
  • Improved error message when an invalid generator name is supplied to the --generator command line argument. #​709, #​771
    • The generator name will now also always be handled case-insensitively, independently of the OS used.
    • Thanks to [Rodrigo Primo][@​rodrigoprimo] for the patch.
  • The user will be shown an informative error message for sniffs missing one of the required methods. #​873
    • Previously this would result in a fatal error.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Ruleset processing will now be allowed to run to its conclusion - barring critical errors - before displaying all ruleset errors in one go. #​857
    • Previously an error in a ruleset would cause PHPCS to exit immediately and show only one error at a time.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generators: XML documentation files which don't contain any actual documentation will now silently be ignored. #​755
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generators: when the title attribute is missing, the documentation generation will now fall back to the sniff name as the title. #​820
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generators: cleaner output based on the elements of the documentation which are available. #​819, #​821
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generators/HTML: improved display of code tables by using semantic HTML. #​854
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Squiz.Classes.ClassFileName: recommend changing the file name instead of changing the class name. #​845
    • This prevents unactionable recommendations due to the file name not translating to a valid PHP symbol name.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Squiz.Functions.FunctionDeclarationArgumentSpacing: incorrect spacing after a comma followed by a promoted property has an improved error message and will now be flagged with the SpacingBeforePropertyModifier or NoSpaceBeforePropertyModifier error codes. #​792
    • This was previously already flagged, but using either the SpacingBeforeHint or NoSpaceBeforeHint error code, which was misleading.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Squiz.Functions.FunctionDeclarationArgumentSpacing: the sniff will now also check the spacing after property modifiers for promoted properties in constructor methods. #​792
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Squiz.WhiteSpace.ScopeKeywordSpacing: the sniff will now also check the spacing after the final and abstract modifier keywords. #​604
    • Thanks to [Klaus Purer][@​klausi] for the patch.
  • The following sniff(s) have received efficiency improvements:
    • Squiz.WhiteSpace.ScopeKeywordSpacing
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches.
  • Incorrectly set inline properties (in test case files) will be silently ignored again. #​884
    • This removes the Internal.PropertyDoesNotExist error code.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • The AbstractMethodUnitTest class will now flag duplicate test case markers in a test case file. #​773
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Various housekeeping, including improvements to the tests and documentation.
Deprecated

All deprecation are slated for removal in PHP_CodeSniffer 4.0.

  • Support for sniffs not implementing the PHPCS Sniff interface. See #​694.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Support for including sniffs which don't comply with the PHPCS naming conventions (by referencing the sniff file directly). See #​689.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Support for external standards named "Internal". See #​799.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • The following Generator methods are now (soft) deprecated. See #​755:
    • PHP_CodeSniffer\Generators\Text::printTitle() in favour of PHP_CodeSniffer\Generators\Text::getFormattedTitle()
    • PHP_CodeSniffer\Generators\Text::printTextBlock() in favour of PHP_CodeSniffer\Generators\Text::getFormattedTextBlock()
    • PHP_CodeSniffer\Generators\Text::printCodeComparisonBlock() in favour of PHP_CodeSniffer\Generators\Text::getFormattedCodeComparisonBlock()
    • PHP_CodeSniffer\Generators\Markdown::printHeader() in favour of PHP_CodeSniffer\Generators\Markdown::getFormattedHeader()
    • PHP_CodeSniffer\Generators\Markdown::printFooter() in favour of PHP_CodeSniffer\Generators\Markdown::getFormattedFooter()
    • PHP_CodeSniffer\Generators\Markdown::printTextBlock() in favour of PHP_CodeSniffer\Generators\Markdown::getFormattedTextBlock()
    • PHP_CodeSniffer\Generators\Markdown::printCodeComparisonBlock() in favour of PHP_CodeSniffer\Generators\Markdown::getFormattedCodeComparisonBlock()
    • PHP_CodeSniffer\Generators\HTML::printHeader() in favour of PHP_CodeSniffer\Generators\HTML::getFormattedHeader()
    • PHP_CodeSniffer\Generators\HTML::printToc() in favour of PHP_CodeSniffer\Generators\HTML::getFormattedToc()
    • PHP_CodeSniffer\Generators\HTML::printFooter() in favour of PHP_CodeSniffer\Generators\HTML::getFormattedFooter()
    • PHP_CodeSniffer\Generators\HTML::printTextBlock() in favour of PHP_CodeSniffer\Generators\HTML::getFormattedTextBlock()
    • PHP_CodeSniffer\Generators\HTML::printCodeComparisonBlock() in favour of PHP_CodeSniffer\Generators\HTML::getFormattedCodeComparisonBlock()
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
Fixed
  • Fixed bug #​794 : Generators: prevent fatal error when the XML documentation does not comply with the expected format.
  • Fixed bug #​814 : Generic.NamingConventions.ConstructorName: prevent potential fatal errors during live coding.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​816 : File::getDeclarationName(): prevent incorrect result for unfinished closures during live coding.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​817 : Squiz.Classes.ValidClassName: ignore comments when determining the name to be validated.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​825 : Squiz.Classes.ClassDeclaration: false positives when the next thing after a class was a function with an attribute attached.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​826 : Squiz.WhiteSpace.FunctionSpacing: prevent incorrect some results when attributes are attached to a function.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​827 : PEAR.Functions.FunctionDeclaration: fixer conflict over an unfinished closure during live coding.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​828 : Squiz.WhiteSpace.MemberVarSpacing: allow for readonly properties.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​832 : Squiz.WhiteSpace.MemberVarSpacing: prevent potential fixer conflict during live coding.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​833 : Squiz.PHP.EmbeddedPhp: fixer conflict when a PHP open tag for a multi-line snippet is found on the same line as a single-line embedded PHP snippet.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​833 : Squiz.PHP.EmbeddedPhp: incorrect indent calculation in certain specific situations.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​835 : Generic.PHP.DisallowShortOpenTag: don't act on parse errors.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​838 : Squiz.PHP.EmbeddedPhp: no new line before close tag was incorrectly enforced when a preceding OO construct or function had a trailing comment after the close curly.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​840 : Squiz.WhiteSpace.MemberVarSpacing: more accurate reporting on blank lines in the property "pre-amble" (i.e. docblock, attributes).
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​845 : Squiz.Classes.ClassFileName: don't throw an incorrect error for an unfinished OO declaration during live coding.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​865 : Setting an array property to an empty array from an XML ruleset now works correctly.
    • Previously, the property value would be set to [0 => ''].
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​866 : Squiz.WhiteSpace.FunctionOpeningBraceSpace: XML docs were not accessible due to an issue with the file name.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
Other
  • A new wiki page is available to clarify the difference between a project ruleset and an external standard.
    • This wiki page also contains detailed information about the naming conventions external standards must comply with.
  • A new XMLLint validate action runner is available which can be used in CI to validate rulesets for PHP_CodeSniffer against the XSD.

v3.11.3

Compare Source

Changed
  • Generic.ControlStructures.InlineControlStructure no longer unnecessarily listens for T_SWITCH tokens. #​595
  • Squiz.Functions.FunctionDeclarationArgumentSpacing: improvements to error message for SpaceBeforeComma error. #​783
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • The following sniff(s) have received efficiency improvements:
    • Squiz.Functions.FunctionDeclarationArgumentSpacing
    • Thanks to [Dan Wallis][@​fredden] and [Juliette Reinders Folmer][@​jrfnl] for the patches.
  • Various housekeeping, including improvements to the tests and documentation.
Fixed
  • Fixed bug #​620 : Squiz.Functions.FunctionDeclarationArgumentSpacing: newlines after type will now be handled by the fixer. This also prevents a potential fixer conflict.
  • Fixed bug #​782 : Tokenizer/PHP: prevent an "Undefined array key" notice during live coding for unfinished arrow functions.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line after reference token was not flagged nor fixed.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line after variadic token was not flagged nor fixed.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line before/after the equal sign for default values was not flagged nor fixed when equalsSpacing was set to 0.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer conflict when a new line is found before/after the equal sign for default values and equalsSpacing was set to 1.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer for spacing before/after equal sign could inadvertently remove comment.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer will now handle comments between the end of a parameter and a comma more cleanly.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​784 : Squiz.WhiteSpace.FunctionSpacing: prevent fixer conflict when a multi-line docblock would start on the same line as the function close curly being examined.
    • Thanks to [Klaus Purer][@​klausi] for the patch

v3.11.2

Compare Source

Changed
  • Generators/HTML + Markdown: the output will now be empty (no page header/footer) when there are no docs to display. [#​687]
    • This is in line with the Text Generator which already didn't produce output if there are no docs.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generators/HTML: only display a Table of Contents when there is more than one sniff with documentation. [#​697]
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generators/HTML: improved handling of line breaks in <standard> blocks. [#​723]
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generators/Markdown: improved compatibility with the variety of available markdown parsers. [#​722]
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generators/Markdown: improved handling of line breaks in <standard> blocks. [#​737]
    • This prevents additional paragraphs from being displayed as code blocks.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Generic.NamingConventions.UpperCaseConstantName: the exact token containing the non-uppercase constant name will now be identified with more accuracy. [#​665]
  • Generic.Functions.OpeningFunctionBraceKernighanRitchie: minor improvement to the error message wording. [#​736]
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Various housekeeping, including improvements to the tests and documentation.
Fixed
  • Fixed bug [#​527] : Squiz.Arrays.ArrayDeclaration: short lists within a foreach condition should be ignored.
  • Fixed bug [#​665] : Generic.NamingConventions.UpperCaseConstantName: false positives and false negatives when code uses unconventional spacing and comments when calling define().
  • Fixed bug [#​665] : Generic.NamingConventions.UpperCaseConstantName: false positive when a constant named DEFINE is encountered.
  • Fixed bug [#​665] : Generic.NamingConventions.UpperCaseConstantName: false positive for attribute class called define.
  • Fixed bug [#​665]

Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/root-composer branch from 04246f3 to f728c1b Compare August 22, 2023 19:23
@renovate renovate bot force-pushed the renovate/root-composer branch from f728c1b to da1ca06 Compare September 19, 2023 10:42
@renovate renovate bot changed the title Update dependency slevomat/coding-standard to v8.13.4 Update dependency slevomat/coding-standard to v8.14.0 Oct 7, 2023
@renovate renovate bot force-pushed the renovate/root-composer branch from da1ca06 to 4e5eea3 Compare October 7, 2023 10:46
@renovate renovate bot changed the title Update dependency slevomat/coding-standard to v8.14.0 Update dependency slevomat/coding-standard to v8.14.1 Oct 8, 2023
@renovate renovate bot force-pushed the renovate/root-composer branch from 4e5eea3 to f4bb863 Compare October 8, 2023 10:56
@renovate renovate bot changed the title Update dependency slevomat/coding-standard to v8.14.1 Update root-composer Dec 8, 2023
Copy link
Contributor Author

renovate bot commented Dec 8, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update slevomat/coding-standard:8.15.0 squizlabs/php_codesniffer:3.9.2 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Dependency dealerdirect/phpcodesniffer-composer-installer is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires squizlabs/php_codesniffer ^3.5.3, found squizlabs/php_codesniffer[3.5.3, ..., 3.9.2] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - consistence-community/coding-standard is locked to version 3.11.3 and an update of this package was not requested.
    - consistence-community/coding-standard 3.11.3 requires squizlabs/php_codesniffer ~3.7.0 -> found squizlabs/php_codesniffer[3.7.0, 3.7.1, 3.7.2] but it conflicts with your temporary update constraint (squizlabs/php_codesniffer:3.9.2).
  Problem 3
    - dealerdirect/phpcodesniffer-composer-installer is locked to version v1.0.0 and an update of this package was not requested.
    - dealerdirect/phpcodesniffer-composer-installer v1.0.0 requires squizlabs/php_codesniffer ^2.0 || ^3.1.0 || ^4.0 -> found squizlabs/php_codesniffer[2.0.0, ..., 2.9.2, 3.1.0, ..., 3.9.2] but these were not loaded, likely because it conflicts with another require.
  Problem 4
    - Root composer.json requires slevomat/coding-standard ^8.8.0 -> satisfiable by slevomat/coding-standard[8.15.0].
    - slevomat/coding-standard 8.15.0 requires squizlabs/php_codesniffer ^3.9.0 -> found squizlabs/php_codesniffer[3.9.0, 3.9.1, 3.9.2] but these were not loaded, likely because it conflicts with another require.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Copy link
Contributor Author

renovate bot commented May 20, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update dealerdirect/phpcodesniffer-composer-installer:1.1.0 slevomat/coding-standard:8.19.1 squizlabs/php_codesniffer:3.13.2 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins --minimal-changes
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires squizlabs/php_codesniffer ^3.5.3, found squizlabs/php_codesniffer[3.5.3, ..., 3.13.2] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - consistence-community/coding-standard is locked to version 3.11.3 and an update of this package was not requested.
    - consistence-community/coding-standard 3.11.3 requires squizlabs/php_codesniffer ~3.7.0 -> found squizlabs/php_codesniffer[3.7.0, 3.7.1, 3.7.2] but it conflicts with your temporary update constraint (squizlabs/php_codesniffer:3.13.2).
  Problem 3
    - Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^1.0.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v1.1.0].
    - dealerdirect/phpcodesniffer-composer-installer v1.1.0 requires squizlabs/php_codesniffer ^2.0 || ^3.1.0 || ^4.0 -> found squizlabs/php_codesniffer[2.0.0, ..., 2.9.2, 3.1.0, ..., 3.13.2] but these were not loaded, likely because it conflicts with another require.
  Problem 4
    - Root composer.json requires slevomat/coding-standard ^8.8.0 -> satisfiable by slevomat/coding-standard[8.19.1].
    - slevomat/coding-standard 8.19.1 requires squizlabs/php_codesniffer ^3.13.0 -> found squizlabs/php_codesniffer[3.13.0, 3.13.1, 3.13.2] but these were not loaded, likely because it conflicts with another require.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate renovate bot changed the base branch from main to 1.x September 4, 2024 20:30
@renovate renovate bot changed the base branch from 1.x to 2.x September 4, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants