Releases: zendframework/zend-code
zend-code 3.4.1
zend-code 3.4.0
Added
- 
#170 adds class constant visibility modifiers support.
 - 
#169 adds the ability to define declare statements.
 - 
#167 adds the ability to remove doc block of a member.
 
Changed
- #166 changes omitting default property value if it is null.
 
Deprecated
- Nothing.
 
Removed
- Nothing.
 
Fixed
- #172 fixes PHP 7.4 compatibility.
 
zend-code 3.3.2
zend-code 3.3.1
Added
- Nothing.
 
Changed
- Nothing.
 
Deprecated
- Nothing.
 
Removed
- Nothing.
 
Fixed
- 
#158 updates several
switchcases to usebreakinstead ofcontinue
in order to prevent issues under the upcoming PHP 7.3 release. - 
#147 fixes the regular expression used for
@varannotations to
allow omission of the variable name. - 
#146 updates all
@returnannotations to reflect the correct types returned by each method. - 
#144 fixes the class generator such that it now resolves
setExtendedClass()arguments to aliases provided to the generator. - 
#140 fixes
MethodScanner::setVisibility()such that it no longer
casts the provided visibility token to lower case; this fix is necessary, as
the method is supposed to expect only the appropriate
T_(PUBLIC|PROTECTED|PRIVATE)token values, which are integers. - 
#140 updates the
MethodScanner::setVisibility()method to raise
a package-specificInvalidArgumentExceptioninstead of the non-existent
packageExceptionclass when an invalid visibility is provided. 
zend-code 3.3.0
3.3.0 - 2017-10-20
Added
- #131 added the
ability to omit a parameter type declaration - #132 added a
lightweightMethodGenerator::copyMethodSignature()constructor that
only copies the method declaration with no body nor docblock. - #134 short array
notation is now used by default for generated array values - #136 added the
ability to specify anomitdefaultvaluekey when using
ParameterGenerator::fromArray() 
Deprecated
- Nothing.
 
Removed
- Nothing.
 
Fixed
- #130 Updated
links to the documentation - #133 The default
value of aParameterGeneratoris always aValueGenerator 
Total issues resolved: 6
- 130: Updated links to the docs thanks to @webimpress
 - 131: Add omit property value type thanks to @janvernieuwe
 - 132: Add MethodGenerator::copyMethodSignature without body and phpdoc thanks to @Tobion
 - 133: Default value of ParameterGenerator is always a ValueGenerator thanks to @Tobion
 - 134: use short array syntax by default with param type array thanks to @Tobion
 - 136: Add omitdefaultvalue to fromArray options thanks to @janvernieuwe
 
zend-code 3.2.0
3.2.0 - 2017-07-23
Added
- #112
#110 Introduced
support for the PHP7.2objecttype-hint - #41 Added 
VarTag
support to the docblock generators and reflectors: allows generating
and parsing@vartags. - #113 Added
PHP7.2to the build matrix - #114 Increased
minimum supported PHP version to^7.1.0 - #114 Upgraded
PHPUnit dependency to^6.2.2 - #121 Imported
global functions viausestatements (experimenting with OpCache
OPCODE inlining optimisations) 
Deprecated
- Nothing.
 
Removed
Fixed
- #101 avoid
callingisInternalPhpTypetwice in theTypeGenerator - #115 Replaced
assertions in the test suite with their static counterparts where
applicable - #120
#109
#100 Applied
ZendFramework coding standard to the library code - #119 Corrected
test suite errors caused by mismatching parameter order - #106
 - #107 Minor
typing error corrections in documentation and error messages 
Total issues resolved: 16
- 41: Add @var tag support in dockblocks thanks to @red-led
 - 100: New coding standard thanks to @Koopzington
 - 101: Don't call isInternalPhpType() twice in TypeGenerator thanks to @danez
 - 106: Minor spelling fixes thanks to @ka7
 - 107: Fixed typo thanks to @dverkade
 - 109: Feature - extended CS sniffs thanks to @webimpress
 - 110: Add support for PHP 7.2's 
objecttype hint thanks to @Ocramius - 112: Introduce PHP7.2 
objecttype hint thanks to @shulard - 113: Drop hhvm build, added PHP 7.2 (nightly) build thanks to @webimpress
 - 114: Bumped PHP to 7.1 and updated PHPUnit to ^6.2.2 thanks to @webimpress
 - 115: Changed all assertions to self::assert instead of $this->... thanks to @webimpress
 - 118: Fixed travis configuration - removed hhvm in condition thanks to @webimpress
 - 119: Fixes in tests - changed order of params thanks to @webimpress
 - 120: Rebased #100 - New coding standard thanks to @webimpress
 - 121: Import PHP internal functions thanks to @webimpress
 - 122: Remove IRC notifications in travis configuration thanks to @webimpress
 
zend-code 3.1.0
Added
- #87 support for
PHP 7.1'svoidreturn type declaration. - #87 support for
PHP 7.1's nullable type declarations. - #87 support for
PHP 7.1'siterabletype declaration. - #62 added
Zend\Code\Generator\MethodGenerator#getReturnType()accessor. - #68
#26 added mutators
to allow removing/checking for existence of methods, properties, constants,
parameters and type declarations across all the code generator API. - #65 continuous
integration testing now checks locked, newest and oldest dependency
sets. 
Deprecated
- Nothing.
 
Removed
- Nothing.
 
Fixed
- Nothing.
 
Total issues resolved: 5
zend-code 3.0.5
Added
- Nothing.
 
Deprecated
- Nothing.
 
Removed
- Nothing.
 
Fixed
- #92 corrected
Zend\Code\Scanner\ClassScannerto detect multiple interface inheritance. - #95 corrected
Zend\Code\Generator\ParameterGeneratorto allow copying parameter signatures
for non-optional parameters that are still nullable via a default= null
value. - #94 corrected
Zend\Code\Generator\ValueGeneratorso that class constants can now
be generated with arrays as default value (supported since PHP 5.6). 
Total issues resolved: 5
- 89: Remove fast_finish flag
 - 90: ClassScanner::getInterfaces() don't work correctly with Interface
 - 92: 1. Fix ClassScanner::getInterfaces() which don't work with Interface.
 - 94: Allow arrays as constant values in generated constants
 - 95: Fix generation of non-optional object parameters that can be null.
 
zend-code 3.0.4
zend-code 3.0.3
Added
- #66 publishes the documentation to https://docs.zendframework.com/zend-code/.
 
Deprecated
- Nothing.
 
Removed
- Nothing.
 
Fixed
- #61 fixes an issue with how parameter typehints were generated; previously, fully-qualified class names were not being generated with the leading backslash, causing them to attempt to resolve as if they were relative to the current namespace.
 - #69 fixes an issue with how class names under the same namespace are generated when generating typehints, extends, and implements values; they now strip the common namespace from the class name.
 - #72 fixes an issue within the 
TokenArrayScannerwhen scanning closures.