Releases: brick/reflection
Releases · brick/reflection
0.7.0
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
💥 Breaking changes
- Minimum PHP version is now
8.0 - The following methods have been removed:
ReflectionTools::getParameterTypes()ReflectionTools::getPropertyTypes()
ReflectionTools::exportFunction()has been renamed toexportFunctionSignature()ReflectionTools::exportFunctionParameters()is no longer part of the public API
✨ New features
ReflectionTools::exportFunctionSignature():- Support for
self,staticandnevertypes - Support for union types and intersection types
- Support for functions returning references
- Support for
🐛 Bug fixes
ReflectionTools::exportFunctionSignature():- constants are now properly exported with a leading
\ - nullable types are now always output with a leading
?
- constants are now properly exported with a leading
💄 Cosmetic changes
ReflectionTools::exportFunctionSignature():- Null values in parameter default values are now output as
nullinstead ofNULL - Arrays in parameter default values are now exported with short array syntax, on a single line
- There is no more space between closing parenthesis and colon, i.e.
): intinstead of) : int
- Null values in parameter default values are now output as
0.4.1
0.4.0
✨ New features
- PHP 8 compatibility 🚀
ReflectionTools::getPropertyTypes()now supports PHP 8 union typesReflectionTools::getParameterTypes()now supports reflection & PHP 8 union types
💥 Breaking changes
ReflectionTools::getParameterTypes()now reads types from reflection firstReflectionTools::getPropertyTypes()andgetParameterTypes():- always return class names as FQCN (including namespace)
- always return built-in types as lowercase
ReflectionTools::getFunctionParameterTypes()has been removedReflectionTools::getPropertyClass()has been removed
⬆️ Dependency upgrade
- For compatibility with PHP 8, this version requires
doctrine/annotations: ^1.10.4