Releases: Roave/BetterReflection
Releases · Roave/BetterReflection
6.4.0
Release Notes for 6.4.0
Feature release (minor)
6.4.0
- Total issues resolved: 1
- Total pull requests resolved: 5
- Total contributors: 4
renovate
- 1302: Update dependency roave/backward-compatibility-check to v7 thanks to @renovate[bot]
- 1301: Roll back ramsey/composer-install action to 2.1.0 thanks to @renovate[bot]
dependencies,enhancement
- 1299: Configure Renovate thanks to @renovate[bot]
enhancement
dependencies,php
6.3.0
Release Notes for 6.3.0
Feature release (minor)
6.3.0
- Total issues resolved: 2
- Total pull requests resolved: 4
- Total contributors: 4
bug,reflection compatibility
- 1286: Fixed reflection compatibility when method/property/constant/case name is empty thanks to @kukulich and @ondrejmirtes
enhancement
- 1285:
Reflection*::getStartLine()/getEndLine()/getStartColumn()/getEndColumn()
throws\Roave\BetterReflection\Reflection\Exception\CodeLocationMissing
instead of\RuntimeException
thanks to @kukulich and @Ocramius - 1284: Kill the last mutant in
ReflectionClass::getProperties()
thanks to @kukulich
dependencies,php
- 1274: Bump vimeo/psalm from 4.27.0 to 4.28.0 thanks to @dependabot[bot]
6.2.0
Release Notes for 6.2.0
Feature release (minor)
6.2.0
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 2
enhancement
dependencies,php
- 1272: Bump phpstan/phpstan from 1.8.7 to 1.8.8 thanks to @dependabot[bot]
- 1271: Bump phpstan/phpstan from 1.8.6 to 1.8.7 thanks to @dependabot[bot]
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
- 1270: Optimisation of getting methods, properties and constants from interfaces thanks to @kukulich
- 1266: Optimisations of getting methods, properties and constants in
ReflectionClass
thanks to @kukulich
bug
- 1269: Fixed detection of interface circular reference thanks to @kukulich and @ondrejmirtes
- 1268: Circular interface failing test thanks to @ondrejmirtes
- 1265:
Stringable
interface does not implementStringable
thanks to @herndlm
dependencies,php
- 1263: Bump symfony/console from 6.0.12 to 6.0.13 thanks to @dependabot[bot]
- 1262: Bump symfony/filesystem from 6.0.12 to 6.0.13 thanks to @dependabot[bot]
6.0.0
Release Notes for 6.0.0
Backwards incompatible release (major)
Notable breakages:
[BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionUnionType#getTypes() now returns a non-empty-list<ReflectionNamedType|ReflectionIntersectionType>, where it previously returned list<ReflectionNamedType>
[BC] CHANGED: Roave\BetterReflection\SourceLocator\Type\StringSourceLocator::__construct() parameter type changed from string to a non-contravariant non-empty-stringallowsNull
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\Exception\SignatureCheckFailed has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\FileCacheLoader has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\LoaderMethodInterface has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\EvalLoader has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\FailedToLoadClass has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\ClassAlreadyRegistered has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\ClassAlreadyLoaded has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassPrinter\ClassPrinterInterface has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassPrinter\PhpParserPrinter has been deleted
[BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoader has been deleted
[BC] REMOVED: Method Roave\BetterReflection\Reflection\Adapter\ReflectionProperty#isAccessible() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionEnum#__construct() was removed
[BC] CHANGED: Method __construct() of class Roave\BetterReflection\Reflection\ReflectionEnum visibility reduced from protected to private
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionClass#__construct() was removed
[BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionClass#__construct() was marked "@internal"
[BC] REMOVED: Class Roave\BetterReflection\SourceLocator\Exception\EmptyPhpSourceCode has been deleted
[BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector was removed
[BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionUnionType#__construct() was removed
[BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector visibility reduced from protected to private
[BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner visibility reduced from protected to private
[BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionUnionType#__construct() was marked "@internal"
[BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector was removed
[BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionNamedType#__construct() was removed
[BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector visibility reduced from protected to private
[BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner visibility reduced from protected to private
[BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionNamedType#__construct() was marked "@internal"
[BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector was removed
[BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionType#__construct() was removed
[BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector was removed
[BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionIntersectionType#__construct() was removed
[BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector visibility reduced from protected to private
[BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner visibility reduced from protected to private
[BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionIntersectionType#__construct() was marked "@internal"
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionEnum#__construct() was removed
[BC] CHANGED: Method __construct() of class Roave\BetterReflection\Reflection\ReflectionEnum visibility reduced from protected to private
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionClass#__construct() was removed
[BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionClass#__construct() was marked "@internal"
[BC] CHANGED: The parameter $betterReflectionType of Roave\BetterReflection\Reflection\Adapter\ReflectionType::fromTypeOrNull() changed from Roave\BetterReflection\Reflection\ReflectionNamedType|Roave\BetterReflection\Reflection\ReflectionUnionType|Roave\BetterReflection\Reflection\ReflectionIntersectionType|null to Roave\BetterReflection\Reflection\ReflectionUnionType|Roave\BetterReflection\Reflection\ReflectionNamedType|Roave\BetterReflection\Reflection\ReflectionIntersectionType|null
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionParameter#isArray() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionParameter#isCallable() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionParameter#getClass() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionClass#getDeclaringNamespaceAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionObject#getDeclaringNamespaceAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionClass#getDeclaringNamespaceAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionParameter#getAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionEnumCase#getAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionConstant#getAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionProperty#getAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionProperty#getPositionInAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionProperty#__clone() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionClassConstant#getAst() was removed
[BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionClassConstant#getPositionInAst() was removed
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionFunctionAbstract#getNamespaceName() changed from string to the non-covariant string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionFunctionAbstract#getNamespaceName() changed from string to string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionClass#getNamespaceName() changed from string to the non-covariant string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionClass#getNamespaceName() changed from string to string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionObject#getNamespaceName() changed from string to the non-covariant string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionObject#getNamespaceName() changed from string to string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionMethod#getNamespaceName() changed from string to the non-covariant string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionMethod#getNamespaceName() changed from string to string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionConstant#getNamespaceName() changed from string to the non-covariant string|null
[BC] CHANGED: The return type of Roave\BetterReflection\Reflection\ReflectionConstant#getNamespaceName() change
6.0.0
- Total issues resolved: 7
- Total pull requests resolved: 49
- Total contributors: 6
enhancement
- 1258: Fixed return type of
ReflectionClass::getDefaultProperties()
thanks to @kukulich - 1256: Detection of circular references in constant, method and property getters thanks to @herndlm
- 1252: Optimise interface traversion in
ReflectionClass
thanks to @herndlm - 1248: Increased minimum covered code mutations core to 100 % thanks to @kukulich
- 1247: Interface can have only public properties thanks to @kukulich
- 1243: Some improvements for
ReflectionClass
thanks to @kukulich - 1242: Detection of trait use circular references thanks to @herndlm
- 1241: Detection of interface extends circular references thanks to @herndlm
- 1240: Detection of circular references thanks to @kukulich and @herndlm
- 1238: Improved code coverage and mutation score thanks to @kukulich
- 1236: Improved return type of
Reflection*::getModifiers()
thanks to @kukulich - [1234: Method names, property...
5.11.1
5.11.0
Release Notes for 5.11.0
Feature release (minor)
5.11.0
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 1
enhancement,reflection compatibility
- 1205: PHP 8.2: Constants in traits thanks to @kukulich
dependencies,enhancement
- 1191: Basic support for PHP 8.2 thanks to @kukulich
5.10.0
Release Notes for 5.10.0
Feature release (minor)
5.10.0
- Total issues resolved: 0
- Total pull requests resolved: 6
- Total contributors: 2
enhancement
- 1197: PHP 8.2: Support for standalone
null
type thanks to @kukulich - 1196: PHP 8.2: Support for fetching properties of
enum
s inconst
expressions thanks to @kukulich - 1192: PHP 8.2: Support for
readonly
classes thanks to @kukulich
dependencies,php
- 1194: Bump roave/infection-static-analysis-plugin from 1.22.0 to 1.23.0 thanks to @dependabot[bot]
- 1193: Bump roave/signature from 1.5.0 to 1.6.0 thanks to @dependabot[bot]
- 1189: Bump phpstan/phpstan from 1.8.3 to 1.8.4 thanks to @dependabot[bot]
5.9.0
Release Notes for 5.9.0
Feature release (minor)
5.9.0
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 2
enhancement
dependencies,php
- 1177: Bump doctrine/coding-standard from 9.0.0 to 10.0.0 thanks to @dependabot[bot]
- 1164: Bump phpstan/phpdoc-parser from 1.6.4 to 1.7.0 thanks to @dependabot[bot]