Skip to content

Releases: Roave/BackwardCompatibilityCheck

7.0.0

31 Mar 09:58
7.0.0
1dd93f2
Compare
Choose a tag to compare

Release Notes for 7.0.0

Backwards incompatible release (major)

Due to BC breaks in symfony/console:^6, some incompatible changes were introduced:

The parameter $definition of Symfony\Component\Console\Command\Command#setDefinition() changed from no type to a non-contravariant array|Symfony\Component\Console\Input\InputDefinition
The parameter $default of Symfony\Component\Console\Command\Command#addArgument() changed from no type to a non-contravariant mixed|null
The parameter $shortcut of Symfony\Component\Console\Command\Command#addOption() changed from no type to a non-contravariant string|array
The parameter $default of Symfony\Component\Console\Command\Command#addOption() changed from no type to a non-contravariant mixed|null

7.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 1

dependencies,php

bc break,dependencies,php

6.4.0

31 Mar 09:43
6.4.0
bd7bb48
Compare
Choose a tag to compare

6.3.0

23 Mar 17:34
6.3.0
2e51abb
Compare
Choose a tag to compare

Release Notes for 6.3.0

Feature release (minor)

6.3.0

  • Total issues resolved: 1
  • Total pull requests resolved: 2
  • Total contributors: 3

bug,enhancement

bug,duplicate

6.2.0

08 Mar 16:03
6.2.0
079f2a6
Compare
Choose a tag to compare

Release Notes for 6.2.0 "Russian Warship go Fuck Yourself"

Feature release (minor)

6.2.0 "Russian Warship go Fuck Yourself"

  • Total issues resolved: 0
  • Total pull requests resolved: 41
  • Total contributors: 3

enhancement

dependencies,php

dependencies,github_actions

bug

6.1.1

04 Feb 18:58
6.1.1
3487ca1
Compare
Choose a tag to compare

Release Notes for 6.1.1

6.1.x bugfix release (patch)

6.1.1

  • Total issues resolved: 1
  • Total pull requests resolved: 1
  • Total contributors: 2

bug

6.1.0

15 Jan 13:14
6.1.0
050cf1e
Compare
Choose a tag to compare

Release Notes for 6.1.0

Feature release (minor)

6.1.0

  • Total issues resolved: 1
  • Total pull requests resolved: 7
  • Total contributors: 4

enhancement

dependencies,php

bug

dependencies,github_actions

bug,duplicate

6.0.1

03 Jan 11:44
6.0.1
7658d00
Compare
Choose a tag to compare

Release Notes for 6.0.1

6.0.x bugfix release (patch)

6.0.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

bug

6.0.0

26 Dec 06:14
6.0.0
316285b
Compare
Choose a tag to compare

roave/backward-compatibility-check 6.0.0

Merry Christmas! 🎄 🎅

This release of roave/backward-compatibility-check brings some major features:

  • php:~8.0.12 and php:~8.1.0 support
  • composer/composer:^2.2.1 support
  • detection of BC breaks due to renamed method parameters: since PHP 8.0 introduced named parameters,
    changing the name of a parameter is considered backwards-incompatible, unless you annotate the function/method
    with @no-named-arguments.
  • detection of BC breaks due to class property native type changes
  • detection of BC breaks due to type variance in parameters/return values in union and intersection types
  • --format=github-actions output format, for better integration with GitHub Actions
  • ability to run with --install-development-dependencies, to also include your require-dev in autoload definitions,
    during analysis.
  • internal type safety with vimeo/psalm
  • full mutation test coverage with roave/infection-static-analysis-plugin

BC Breaks

This release includes multiple changes to bring it up-to-date with the latest capabilities
from roave/better-reflection:5.0.0.

In order to upgrade to the latest and greatest of each library, some internals of this library
have changed radically.

If you were using the library as a CLI tool only, you only need to worry about these new checks,
which may affect your build automation:

  • property type change analysis
  • parameter name change analysis

If you were extending/customizing this library, chances are that you may need to perform major adjustments,
in order to reach compatibility with 6.0.0.

Generated list of BC breaks:

Changed

  • [BC] The parameter $definedSymbols of Roave\BackwardCompatibility\CompareApi#__invoke() changed from Roave\BetterReflection\Reflector\ClassReflector to Roave\BetterReflection\Reflector\Reflector
  • [BC] The parameter $pastSourcesWithDependencies of Roave\BackwardCompatibility\CompareApi#__invoke() changed from Roave\BetterReflection\Reflector\ClassReflector to Roave\BetterReflection\Reflector\Reflector
  • [BC] The parameter $newSourcesWithDependencies of Roave\BackwardCompatibility\CompareApi#__invoke() changed from Roave\BetterReflection\Reflector\ClassReflector to Roave\BetterReflection\Reflector\Reflector
  • [BC] The return type of Roave\BackwardCompatibility\Changes#getIterator() changed from iterable to the non-covariant Traversable
  • [BC] The number of required arguments for Roave\BackwardCompatibility\LocateDependencies\LocateDependenciesViaComposer#__invoke() increased from 1 to 2
  • [BC] The number of required arguments for Roave\BackwardCompatibility\LocateDependencies\LocateDependencies#__invoke() increased from 1 to 2
  • [BC] The return type of Roave\BackwardCompatibility\Factory\ComposerInstallationReflectorFactory#__invoke() changed from Roave\BetterReflection\Reflector\ClassReflector to the non-covariant Roave\BetterReflection\Reflector\Reflector
  • [BC] The parameter $type of Roave\BackwardCompatibility\DetectChanges\Variance\TypeIsCovariant#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionType|null to a non-contravariant Roave\BetterReflection\Reflection\ReflectionIntersectionType|Roave\BetterReflection\Reflection\ReflectionUnionType|Roave\BetterReflection\Reflection\ReflectionNamedType|null
  • [BC] The parameter $comparedType of Roave\BackwardCompatibility\DetectChanges\Variance\TypeIsCovariant#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionType|null to a non-contravariant Roave\BetterReflection\Reflection\ReflectionIntersectionType|Roave\BetterReflection\Reflection\ReflectionUnionType|Roave\BetterReflection\Reflection\ReflectionNamedType|null
  • [BC] The parameter $type of Roave\BackwardCompatibility\DetectChanges\Variance\TypeIsContravariant#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionType|null to a non-contravariant Roave\BetterReflection\Reflection\ReflectionIntersectionType|Roave\BetterReflection\Reflection\ReflectionUnionType|Roave\BetterReflection\Reflection\ReflectionNamedType|null
  • [BC] The parameter $comparedType of Roave\BackwardCompatibility\DetectChanges\Variance\TypeIsContravariant#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionType|null to a non-contravariant Roave\BetterReflection\Reflection\ReflectionIntersectionType|Roave\BetterReflection\Reflection\ReflectionUnionType|Roave\BetterReflection\Reflection\ReflectionNamedType|null
  • [BC] The parameter $fromFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\SkipFunctionBasedErrors#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $toFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\SkipFunctionBasedErrors#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $fromFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeCovarianceChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $toFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeCovarianceChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $fromFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $toFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $fromFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeByReferenceChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $toFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeByReferenceChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $fromFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\RequiredParameterAmountIncreased#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $toFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\RequiredParameterAmountIncreased#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $fromFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterTypeContravarianceChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $toFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterTypeContravarianceChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $fromFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterTypeChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $toFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterTypeChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection\Reflection\ReflectionMethod|Roave\BetterReflection\Reflection\ReflectionFunction
  • [BC] The parameter $fromFunction of Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterDefaultValueChanged#__invoke() changed from Roave\BetterReflection\Reflection\ReflectionFunctionAbstract to a non-contravariant Roave\BetterReflection...
Read more

5.0.0

22 Jun 11:51
15611fe
Compare
Choose a tag to compare

Build Status

Release 5.0.0

5.0.0

  • Total issues resolved: 4
  • Total pull requests resolved: 21
  • Total contributors: 8

bug

bc break,enhancement

dependencies

dependencies,enhancement

enhancement

bc break,bug,enhancement

4.4.0

08 Feb 18:44
aa7bb66
Compare
Choose a tag to compare

Release 4.4.0

4.4.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

bug