Skip to content

Version 1.2.0 of ParserReflection

Compare
Choose a tag to compare
@lisachenko lisachenko released this 30 Dec 08:28
· 222 commits to master since this release
1.2.0

This release contains a lot of fixes and improvements since 1.1.0:

  • Fixed ReflectionParameters with class constant as default value (#44)
  • [NodeResolver] allow parsing of scalar expressions (#47)
  • Fix NodeExpressionResolver to reflect system classes (#50)
  • Parse top level “define” statements in a root namespace (#46)
  • Add test-case scenario for resolving self: constants for parameters, #49
  • Change logic of collecting constants to have an ability to resolve self constants recursively
  • Enable 7.1 for code coverage collecting
  • Added tests for parameters in 5.6 and 7.0
  • Fixed isOptional() result for variadic parameters, they should be optional
  • Fixed bug with accessing default value for variadic optional parameters
  • Added support for the pow operator in PHP5.6
  • Fixed type handling for PHP7.0
  • Enable parsing of files with PHP7.0 classes
  • isAbstract() for methods in the interface should return true
  • Fix broken compatibility with 5.5
  • Added support for displaying return types in the ReflectionMethod->__toString()
  • Fixed typehint for the method
  • Allow to install latest version of nikic/php-parser
  • Fixed ReflectionProperty->isDefault() implementation
  • Fixed buggy self::class resolution for old versions of PHP
  • Add support for nullable types, related to the #12
  • Implement ReflectionFile->isStrictMode check for the strict_types, resolves #59

This release also provides support for parsing PHP7.1 files. However, ReflectionClassConstant and constants with modifiers are not supported yet.