Releases: Roave/BackwardCompatibilityCheck
6.1.1
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
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
- 405: Bump roave/infection-static-analysis-plugin from 1.13.0 to 1.14.0 thanks to @dependabot[bot]
- 376: Bump vimeo/psalm from 4.16.0 to 4.16.1 thanks to @dependabot[bot]
- 373: Bump vimeo/psalm from 4.15.0 to 4.16.0 thanks to @dependabot[bot]
bug
- 387: Merge release 6.0.1 into 6.1.x thanks to @github-actions[bot]
dependencies,github_actions
- 375: Bump laminas/laminas-continuous-integration-action from 1.14.2 to 1.14.3 thanks to @dependabot[bot]
bug,duplicate
6.0.1
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
roave/backward-compatibility-check
6.0.0
Merry Christmas! 🎄 🎅
This release of roave/backward-compatibility-check
brings some major features:
php:~8.0.12
andphp:~8.1.0
supportcomposer/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 yourrequire-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...
5.0.0
Release 5.0.0
5.0.0
- Total issues resolved: 4
- Total pull requests resolved: 21
- Total contributors: 8
bug
- 253: Fix #202 -
PropertyRemoved
should only operate onpublic
properties forfinal
classes thanks to @Ocramius - 247: Fix build thanks to @Jean85
- 202: Add test for property visibilty on final classes thanks to @jaapio
bc break,enhancement
- 252: Upgrade dependencies, replace
beberlei/assert
withwebmozart/assert
, upgrade CS ruleset thanks to @Ocramius - 199: #179 bump
nikolaposa/version
dependency to4.0.0
thanks to @Ocramius
dependencies
- 251: Bump symfony/console from 4.4.8 to 4.4.10 thanks to @dependabot-preview[bot] and @Ocramius
- 250: Bump composer/composer from 1.10.5 to 1.10.7 thanks to @dependabot-preview[bot]
- 249: Bump phpunit/phpunit from 9.0.1 to 9.2.5 thanks to @dependabot-preview[bot]
- 240: Bump phpunit/phpunit from 9.0.1 to 9.1.5 thanks to @dependabot-preview[bot]
- 239: Bump symfony/console from 4.4.8 to 4.4.9 thanks to @dependabot-preview[bot] and @Ocramius
- 236: Bump thecodingmachine/safe from 1.1 to 1.1.1 thanks to @dependabot-preview[bot]
- 232: Bump squizlabs/php_codesniffer from 3.5.4 to 3.5.5 thanks to @dependabot-preview[bot]
- 208: Bump symfony/console from 4.4.4 to 4.4.5 thanks to @dependabot-preview[bot]
dependencies,enhancement
- 248: Support BetterReflection 4 thanks to @Jean85
- 211: Update dependencies for infection package thanks to @KartaviK
- 209: Upgraded psalm, removed redundant assertion thanks to @Ocramius
enhancement
- 226: propose new filename for workflow configuration thanks to @Kanti
- 218: mention that changes need to be committed, to be covered thanks to @staabm
- 217: document class loading assumptions thanks to @staabm
- 201: Update github action example thanks to @jaapio
bc break,bug,enhancement
4.4.0
4.3.0
Release 4.3.0
4.3.0
- Total issues resolved: 1
- Total pull requests resolved: 2
- Total contributors: 3
bug
- 197: Fix Travis builds thanks to @asgrim and @OndraM
dependencies
4.2.1
Release 4.2.1
4.2.1
- Total issues resolved: 0
- Total pull requests resolved: 7
- Total contributors: 4
dependencies
- 188: Bump phpunit/phpunit from 8.3.5 to 8.5.1 thanks to @dependabot-preview[bot]
- 187: Bump squizlabs/php_codesniffer from 3.4.2 to 3.5.3 thanks to @dependabot-preview[bot]
- 185: Bump beberlei/assert from 3.2.6 to 3.2.7 thanks to @dependabot-preview[bot]
- 184: Bump symfony/process from 4.3.4 to 4.4.2 thanks to @dependabot-preview[bot]
- 182: Do not use snapshot for php74 thanks to @gmponos
enhancement
bug
4.2.0
Release 4.2.0
4.2.0
- Total issues resolved: 3
- Total pull requests resolved: 4
- Total contributors: 5
dependencies
- 167: #165 Update beberlei/assert to avoid ext-intl requirement thanks to @darenas31415 and @jakzal
- 163: Bump vimeo/psalm from 3.5.1 to 3.5.3 thanks to @dependabot-preview[bot]
- 162: Bump infection/infection from 0.13.6 to 0.14.1 thanks to @dependabot-preview[bot]
dependencies,enhancement
4.1.0
This release adds the reported version of this tool to its STDERR output.
Total issues resolved: 11
- 145: Bump psalm/plugin-phpunit from 0.6.0 to 0.7 thanks to @dependabot-preview[bot]
- 146: Bump symfony/process from 4.3.2 to 4.3.3 thanks to @dependabot-preview[bot]
- 147: Bump symfony/console from 4.3.2 to 4.3.3 thanks to @dependabot-preview[bot]
- 149: Update github action docs thanks to @staabm
- 150: Fix github action instructions thanks to @staabm
- 152: Bump composer/composer from 1.8.6 to 1.9.0 thanks to @dependabot-preview[bot]
- 153: Bump infection/infection from 0.13.4 to 0.13.6 thanks to @dependabot-preview[bot]
- 155: Bump symfony/process from 4.3.3 to 4.3.4 thanks to @dependabot-preview[bot]
- 156: Bump phpunit/phpunit from 8.2.5 to 8.3.4 thanks to @dependabot-preview[bot]
- 157: --version does not show version thanks to @sebastianbergmann
- 158: #157 report tool version in cli thanks to @Ocramius