Skip to content

0.4.0

Compare
Choose a tag to compare
@BenMorel BenMorel released this 28 Sep 22:32
· 61 commits to master since this release

New features

  • PHP 8 compatibility 🚀
  • ReflectionTools::getPropertyTypes() now supports PHP 8 union types
  • ReflectionTools::getParameterTypes() now supports reflection & PHP 8 union types

💥 Breaking changes

  • ReflectionTools::getParameterTypes() now reads types from reflection first
  • ReflectionTools::getPropertyTypes() and getParameterTypes():
    • always return class names as FQCN (including namespace)
    • always return built-in types as lowercase
  • ReflectionTools::getFunctionParameterTypes() has been removed
  • ReflectionTools::getPropertyClass() has been removed

⬆️ Dependency upgrade

  • For compatibility with PHP 8, this version requires doctrine/annotations: ^1.10.4