This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Releases: zendframework/zend-code
Releases · zendframework/zend-code
zend-code 3.0.2
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #52 updates several dependency constraints:
- zend-stdlib now allows either the 2.7 or 3.0 series, as the APIs consumed by zend-code are compatible across versions.
- PHP now excludes the 7.0.5 release, as it has known issues in its tokenizer implementation that make the zend-code token scanner unusable.
- #46 updates all generators to use
\n
for line endings in generated code, vsPHP_EOL
, ensuring cross-platform consistency.
zend-code 2.6.3
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
zend-code 3.0.1
zend-code 3.0.0
Changed
This section refers to breaking changes: to upgrade, please refer to the migration documentation.
- Types
string
,int
,float
,bool
passed toZend\Code\Generator\ParameterGenerator#setType()
are no longer ignored in generated code #30 - Types declared in DocBlocks are now ignored when creating a
Zend\Code\Generator\ParameterGenerator
viaZend\Code\Generator\ParameterGenerator::fromReflection()
. #30 - Type strings are now validated: passing an invalid type to any method in the generator API may lead to a
Zend\Code\Generator\InvalidArgumentException
being thrown. #30 Zend\Code\Generator\ParameterGenerator::$simple
was removed. #30Zend\Code\Generator\ParameterGenerator#$type
is now anull|Zend\Code\Generator\TypeGenerator
: was astring
before. #30Zend\Code\Generator
type-hints are now always prefixed with the namespace separator\
. #30Zend\Code\Reflection\ParameterReflection#getType()
was renamed toZend\Code\Reflection\ParameterReflection#detectType()
in order to not override the inheritedReflectionParameter#getType()
, introduced in PHP 7. #30
Added
- PHP 7 return type hints generation support via
Zend\Code\Generator\MethodGenerator#setReturnType()
. #30 - PHP 7 scalar type hints generation support via
Zend\Code\Generator\ParameterGenerator#setType()
andZend\Code\Generator\ParameterGenerator#getType()
. #30 - PHP 5.6 variadic arguments support via
Zend\Code\Generator\ParameterGenerator#setVariadic()
andZend\Code\Generator\ParameterGenerator#getVariadic()
. #30 - Generation of methods returning by reference is supported via
Zend\Code\Generator\ParameterGenerator#setReturnsReference()
. #30
Deprecated
- Nothing.
Removed
Zend\Code\ParameterGenerator::$simple
was removed. #30
Fixed
- Nothing.
release-2.6.2
CHANGELOG
2.6.2 - 2015-01-05
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #31 updated license year.