Parser Reflection Versions Save

Parser Reflection API - Provides source code analysis without loading classes into the PHP memory

2.1.2

3 years ago

This patch release fixes compatibility with PHP7.3 and PHP7.4 #103

Warning! Please, be aware that this repo is not maintained well and will be abandoned soon. Consider to upgrade your software to the Roave/BetterReflection library.

2.1.0

4 years ago

This minor release contains several fixes and improvements:

  • Added support for the ReflectionClassConstant #93, #97 (by @MaximilianKresse)
  • PHP7.4 ReflectionMethod->getClosure($object = null) compatibility #88 (by @ddinchev)
  • getNamespaceAliases() logic fix #96 (by @MaximilianKresse)

1.4.1

6 years ago

Small patch release for #89

1.3.0

6 years ago

This release enables usage of token positions during analysis in Go! AOP framework, see #78. Also contains improvements by @loren-osborn in #76

1.2.1

6 years ago

Patch version with small fixes:

  • Fixed the signature of ReflectionClass::newInstance to be compatible across all PHP versions, resolves #70
  • Fixed namespace names with leading slash, resolves #67

PHP version was also bumped to be >=5.6.0. Pay an attention if you use this library with outdated PHP versions.

1.2.0

7 years ago

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.

1.1.0

7 years ago

Minor release, that contains several features and important bug-fixes:

  • Added root namespace normalization, resolves #39
  • Resolved all relative paths to be compatibe with original reflection filenames, resolves #31
  • Allow limiting number of files, that can be cached at any given moment
  • Added resizing of the cache size after changing the maximum limit, resolves #35
  • Added support for "self" and "parent" as method parameter type hint
  • Allow to use internal interfaces (e.g. "Traversable") as parameter types
  • Fixed a notice, when using ReflectionClass::hasConstant method

1.0.2

8 years ago

Patch release for #8

1.0.1

8 years ago

Patch release for fixing #5

1.0.0

8 years ago

This is first working version of ParserReflection :registered: library with almost compatible Reflection API. Enjoy!