Skip to content
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

chore(deps): update build-cs (major) #5

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jun 20, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dealerdirect/phpcodesniffer-composer-installer (source) ^0.7.0 -> ^1.0.0 age adoption passing confidence
slevomat/coding-standard ^7.0 -> ^8.0 age adoption passing confidence

Release Notes

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

v1.0.0

Compare Source

Breaking changes

What's Changed

CI / CD
Tests

New Contributors

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

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

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

v8.13.2

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.Commenting.UselessFunctionDocComment: Fixed false positives
  • SlevomatCodingStandard.Commenting.DocCommentSpacing: Fixed false positives
  • SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing: Fix TypeError when return is on the first line of the file (thanks to @​herndlm)

v8.13.1

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.Commenting.DocCommentSpacing: Fixed fixer
  • SlevomatCodingStandard.Commenting.UselessFunctionDocComment: Fixed false positive
  • Don't parse invalid doccomments

v8.13.0

Compare Source

🔧 Improvements

  • Refactored documentation comments parsing

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.ParameterTypeHint: callable is not valid type for property promotion

v8.12.1

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Fixed false positive

v8.12.0

Compare Source

🆕 New sniffs

  • SlevomatCodingStandard.Arrays.ArrayAccess: Disallow whitespace between array access operator and the variable, or between array access operators (thanks to @​kamil-zacek)

🐛 Fixes

  • SlevomatCodingStandard.Classes.ClassStructure: Fixed fixer
  • SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator: Fixed false positive
  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Fixes
  • SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Fixed false positive

v8.11.1

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.Commenting.AnnotationName: Fixed false positive
  • SlevomatCodingStandard.Strings.DisallowVariableParsing: Fixed false positive

v8.11.0

Compare Source

🆕 New sniffs

  • SlevomatCodingStandard.Commenting.AnnotationName: Checks incorrect annotation names

🔧 Improvements

  • SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses: Don't fix when multiple uses are in one statement (thanks to @​jonathan1055)
  • Support for phpstan/phpdoc-parser 1.20

🐛 Fixes

  • SlevomatCodingStandard.Strings.DisallowVariableParsing: Fixed false positive
  • SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Fixed false positive with array unpacking

v8.10.0

Compare Source

🆕 New sniffs

  • SlevomatCodingStandard.Classes.DisallowStringExpressionPropertyFetch: Disallows string expression property fetch $object->{'foo'}
  • SlevomatCodingStandard.Strings.DisallowVariableParsing: Disallows variable parsing inside strings (thanks to @​Ekimik)
  • SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Disallows partially keyed arrays (thanks to @​bkdotcom)

🔧 Improvements

  • Object shapes support
  • Improved support for arrays in array() style (thanks to @​bkdotcom)
  • Support for phpstan/phpdoc-parser 1.18

v8.9.2

Compare Source

🔧 Improvements

  • Support for phpstan/phpdoc-parser 1.17

🐛 Fixes

  • SlevomatCodingStandard.Classes.ParentCallSpacing: Fixed false positives with parent call used in match()

v8.9.1

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.ControlStructures.NewWithParentheses: Fixed false positives for anonymous class with attributes
  • SlevomatCodingStandard.Classes.RequireSelfReference: Fixed false positives for anonymous classes with extends or implements

v8.9.0

Compare Source

🆕 New sniffs

  • SlevomatCodingStandard.Classes.EnumCaseSpacing: Checks that there is a certain number of blank lines between enum cases
  • SlevomatCodingStandard.Classes.RequireSelfReference: Requires self for local reference
  • SlevomatCodingStandard.Variables.DisallowVariableVariable: Disallows use of variable variables
  • SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator: Ternary operator has to be reformatted when the operator is not leading the line (thanks to @​esserj)
  • SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys: Enforces natural sorting of array definitions by key in multi-line arrays (thanks to @​bkdotcom)

🔧 Improvements

  • Support for phpstan/phpdoc-parser 1.16
  • @phpcsSuppress can be with comment
  • Support for non-falsy-string, list and non-empty-list type hints
  • SlevomatCodingStandard.Arrays.TrailingArrayComma: Support for "legacy" array() syntax (thanks to @​bkdotcom)
  • SlevomatCodingStandard.Complexity.Cognitive: Deprecate maxComplexity and implement warningThreshold and errorThreshold options (thanks to @​bkdotcom)
  • SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing: New option allowOnSameLine (thanks to @​stlrnz)
  • SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature: New option minParameterCount (thanks to @​janedbal)

🐛 Fixes

  • SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses: Fixer should not remove doc comments
  • SlevomatCodingStandard.ControlStructures.EarlyExit: Fixed detection of useless else
  • SlevomatCodingStandard.Variables.UselessVariable: Fixed false positive
  • SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking: Fixed false positive with first class callable
  • SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion: Fixes using prefixed var phpdoc (thanks to @​franmomu)

v8.8.0

Compare Source

🔧 Improvements

  • Support for unsealed array shapes
  • Allow for the 1.0.0 version of the Composer PHPCS plugin (thanks to @​jrfnl)

🐛 Fixes

  • SlevomatCodingStandard.Classes.RequireAbstractOrFinal: Fixed false positive for readonly classes
  • Fix typo in exception message (thanks to @​jslmorrison)

v8.7.1

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing: Fixed false positive when parameter has attribute but no type hint

v8.7.0

Compare Source

🔧 Improvements

  • Support for phpstan/phpdoc-parser 1.15
  • Support for phpstan/phpdoc-parser 1.14
  • SlevomatCodingStandard.Attributes.AttributesOrder: New option orderAlphabetically
  • SlevomatCodingStandard.Attributes.AttributesOrder: Attributes could be ordered by mask (thanks to @​alexndlm)

🐛 Fixes

  • SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing: Fixed fixer

v8.6.4

Compare Source

🔧 Improvements

  • Improved annotations parsing
  • SlevomatCodingStandard.Classes.ClassConstantVisibility: Added support for traits with constants
  • SlevomatCodingStandard.Classes.ConstantSpacing: Added support for traits with constants

🐛 Fixes

  • SlevomatCodingStandard.Attributes.DisallowAttributesJoining: Fix for attribute with trailing comma (thanks to @​javer)

v8.6.3

Compare Source

🐛 Fixes

  • Slevomat.Namespaces.ReferenceUsedNamesOnly: Fixed fixer when there's conflict with Slevomat.Namespaces.UnusedUses
  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: Fixed false positives for int<0, max> and int<min, 100>
  • SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing: Fixed false positive for comment after attribute

v8.6.2

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: Fixed false positive with self::CONSTANT

v8.6.1

Compare Source

🔧 Improvements

  • Support of phpstan/phpdoc-parser 1.12.0

🐛 Fixes

  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: Fixed false positives for global constants
  • SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fixed false positives for constants

v8.6.0

Compare Source

🆕 New sniffs

  • Added SlevomatCodingStandard.Attributes.AttributesOrder
  • Added SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing
  • Added SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine
  • Added SlevomatCodingStandard.Attributes.DisallowAttributesJoining (thanks to @​michnovka)
  • Added SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment

🔧 Improvements

  • Support of phpstan/phpdoc-parser 1.11.0
  • Support for @phpstan-self-out/@phpstan-this-out
  • Support for @param-out annotation`
  • Support for @template with default value
  • Add dev Composer keyword (thanks to @​GaryJones)

🐛 Fixes

  • Improved detection of references in double quotes strings

v8.5.2

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.PropertyTypeHint: Fixed false positives when enableUnionTypeHint is disabled and enableIntersectionTypeHint is enabled
  • SlevomatCodingStandard.TypeHints.ParameterTypeHint: Fixed false positives when enableUnionTypeHint is disabled and enableIntersectionTypeHint is enabled
  • SlevomatCodingStandard.TypeHints.ReturnTypeHint: Fixed false positives when enableUnionTypeHint is disabled and enableIntersectionTypeHint is enabled

v8.5.1

Compare Source

🐛 Fixes

  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Fixed broken fixer when enableAdvancedStringTypes is enabled

v8.5.0

Compare Source

🔧 Improvements

  • PHP 8.2: Support for standalone null, true and false type hints
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Improved support for native simple types
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: New option enableIntegerRanges
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: New option enableAdvancedStringTypes
  • Support of phpstan/phpdoc-parser 1.8.0

🐛 Fixes

  • SlevomatCodingStandard.Classes.PropertyDeclaration: Fixed false positive
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Fixed false positive
  • SlevomatCodingStandard.ControlStructures.DisallowYodaComparison/RequireYodaComparison: Fixed support for condition in arrow function
  • SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition: Fixed false positives for old array definition style
  • SlevomatCodingStandard.Variables.UselessVariable: Fixed false positives

v8.4.0

Compare Source

🔧 Improvements

  • Support of phpstan/phpdoc-parser 1.7.0

🐛 Fixes

  • Fixed detection of some PHP 8.1 types
  • SlevomatCodingStandard.PHP.RequireNowdoc: Accepts escaped sequences (thanks to @​dg)
  • SlevomatCodingStandard.Functions.RequireSingleLineCall: Skip calls with multi-line double-quoted string (thanks to @​schlndh)
  • SlevomatCodingStandard.PHP.UselessParentheses: Fixed false positive with xor
  • SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator: Try to ignore string offsets

v8.3.0

Compare Source

🆕 New sniffs

  • Added SlevomatCodingStandard.Complexity.Cognitive (thanks to @​bkdotcom)
  • Added SlevomatCodingStandard.Files.FileLength (thanks to @​bkdotcom)
  • Added SlevomatCodingStandard.Classes.ClassLength (thanks to @​bkdotcom)

🐛 Fixes

  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Do not throw away static type (thanks to @​simPod)

v8.2.0

Compare Source

🆕 New sniffs

  • Added SlevomatCodingStandard.Classes.BackedEnumTypeSpacing

🔧 Improvements

  • SlevomatCodingStandard.TypeHints.ParameterTypeHint: MissingTraversableTypeHintSpecification is not reported when promoted property has @var annotation

v8.1.0

Compare Source

🔧 Improvements

  • SlevomatCodingStandard.Classes.PropertyDeclaration: New option checkPromoted to enable check of promoted properties
  • SlevomatCodingStandard.Classes.PropertyDeclaration: New option enableMultipleSpacesBetweenModifiersCheck to enable check of spaces between property modifiers
  • SlevomatCodingStandard.Classes.PropertyDeclaration: Improved error messages
  • SlevomatCodingStandard.Classes.ForbiddenPublicProperty: New option checkPromoted to enable check of promoted properties

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.PropertyTypeHint: Fix inconsistent enableIntersectionTypeHint (thanks to @​schlndh)

v8.0.1

Compare Source

🐛 Fixes

  • Group use statements are ignored - we don't support them
  • SlevomatCodingStandard.PHP.UselessParentheses: Fixed false positive
  • SlevomatCodingStandard.TypeHints.ParameterTypeHint: Fixed internal error (thanks to @​schlndh)

v8.0.0

Compare Source

🔧 Improvements

  • Support for intersection types
  • Support for readonly properties
  • Support for enums
  • Support for never type hint
  • Support for more unofficial type hints
  • SlevomatCodingStandard.Classes.PropertyDeclaration: Checks also order of modifiers
  • SlevomatCodingStandard.Classes.ClassStructure: Support for enum cases and readonly properties

🐛 Fixes

  • SlevomatCodingStandard.Classes.PropertyDeclaration: Fixed missing support for only static property
  • SlevomatCodingStandard.TypeHints.PropertyTypeHint: Fixed missing support for only static property
  • SlevomatCodingStandard.Commenting.EmptyComment: Fixed internal error
  • SlevomatCodingStandard.Classes.ForbiddenPublicProperty: Fixed internal error
  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: Fixed false positives for @psalm-import-type in @psalm-var
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Ignore unsupported unofficial type hints

⚠️BC breaks

  • SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing renamed to SlevomatCodingStandard.Classes.PropertyDeclaration
  • SlevomatCodingStandard.Classes.ClassStructure: Removed option enableFinalMethods
  • Removed error SlevomatCodingStandard.Namespaces.UnusedUses.MismatchingCaseSensitivity

Configuration

📅 Schedule: Branch creation - "* 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
Copy link
Author

renovate bot commented Jun 20, 2022

⚠ 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: build-cs/composer.lock
Command failed: docker run --rm --name=renovate_sidecar --label=renovate_child -v "/mnt/renovate/gh/php-standard-library/phpstan-extension":"/mnt/renovate/gh/php-standard-library/phpstan-extension" -v "/tmp/renovate-cache":"/tmp/renovate-cache" -v "/tmp/containerbase":"/tmp/containerbase" -e COMPOSER_CACHE_DIR -e COMPOSER_AUTH -e BUILDPACK_CACHE_DIR -e CONTAINERBASE_CACHE_DIR -w "/mnt/renovate/gh/php-standard-library/phpstan-extension/build-cs" docker.io/containerbase/sidecar bash -l -c "install-tool php 8.2.3 && install-tool composer 2.5.4 && composer update dealerdirect/phpcodesniffer-composer-installer slevomat/coding-standard --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
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires slevomat/coding-standard ^8.0, found slevomat/coding-standard[8.0.0, ..., 8.8.0] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - consistence-community/coding-standard is locked to version 3.11.1 and an update of this package was not requested.
    - consistence-community/coding-standard 3.11.1 requires slevomat/coding-standard ~7.0 -> found slevomat/coding-standard[7.0.0, ..., 7.2.1] but it conflicts with your root composer.json require (^8.0).

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

@renovate renovate bot force-pushed the renovate/major-build-cs branch from 377a705 to d59975a Compare March 11, 2023 02:40
@renovate renovate bot changed the title Update dependency slevomat/coding-standard to v8 Update build-cs (major) Mar 11, 2023
@renovate renovate bot changed the title Update build-cs (major) chore(deps): update build-cs (major) Sep 4, 2024
@renovate renovate bot force-pushed the renovate/major-build-cs branch from d59975a to 4311edc Compare September 4, 2024 19:34
Copy link
Author

renovate bot commented Sep 4, 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: build-cs/composer.lock
Command failed: composer update dealerdirect/phpcodesniffer-composer-installer:1.0.0 slevomat/coding-standard:8.15.0 --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
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires slevomat/coding-standard ^8.0, found slevomat/coding-standard[8.0.0, ..., 8.15.0] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - consistence-community/coding-standard is locked to version 3.11.1 and an update of this package was not requested.
    - consistence-community/coding-standard 3.11.1 requires slevomat/coding-standard ~7.0 -> found slevomat/coding-standard[7.0.0, ..., 7.2.1] but it conflicts with your root composer.json require (^8.0).

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 1.0.x to 1.1.x September 4, 2024 19:34
@renovate renovate bot force-pushed the renovate/major-build-cs branch from 4311edc to e90acc3 Compare November 12, 2024 02:20
@renovate renovate bot changed the base branch from 1.1.x to 2.0.x November 12, 2024 02:20
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