Skip to content

0.4.2 Emphasize the risk of runtime errors in Reflection methods

Compare
Choose a tag to compare
@vudaltsov vudaltsov released this 05 Aug 16:10
· 82 commits to 0.4.x since this release

Type

  • Drop needless $type parameter PHPDoc types in TypeVisitor.
  • Return Type<int> in types::intMask() due to possibly overflowing bitmasks.

Reflection

  • Add AttributeReflection::evaluate() to emphasize the risk of runtime errors.
  • Add AttributeReflection::evaluateArguments() to emphasize the risk of runtime errors.
  • Add ClassConstantReflection::evaluate() to emphasize the risk of runtime errors.
  • Add ParameterReflection::evaluateDefault() to emphasize the risk of runtime errors.
  • Add PropertyReflection::evaluateDefault() to emphasize the risk of runtime errors.

Full Changelog: 0.4.1...0.4.2