NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2075 most downloaded on Packagist
Extensions to the PHP Reflection API, static code scanning, and code generation
Latest stable
3.4.1
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 13 months
Some releases are documented
notes for 19 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
79 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
Added ----- - #180 adds support for PHP 7.4. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - #179
Added ----- - #170 adds class constant visibility modifiers support. - #169 adds the ability to define declare statements. - #167 adds the ability to
#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.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added ----- - #162 adds support for PHP 7.3. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - #171
Added ----- - Nothing. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - #158 updates several switc
#158 updates several switch cases to use break instead of continue
in order to prevent issues under the upcoming PHP 7.3 release.
#147 fixes the regular expression used for @var annotations to
allow omission of the variable name.
#146 updates all @return annotations 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-specific InvalidArgumentException instead of the non-existent
package Exception class when an invalid visibility is provided.
130: Updated links to the docs thanks to @webimpress
MethodGenerator::copyMethodSignature() constructor that
only copies the method declaration with no body nor docblock.omitdefaultvalue key when using
ParameterGenerator::fromArray()ParameterGenerator is always a ValueGeneratorTotal issues resolved: 6
41: Add @var tag support in dockblocks thanks to @red-led
7.2 object type-hintVarTag
support to the docblock generators and reflectors: allows generating
and parsing @var tags.7.2 to the build matrix^7.1.0^6.2.2use statements (experimenting with OpCache
OPCODE inlining optimisations)isInternalPhpType twice in the TypeGeneratorTotal issues resolved: 16
object type hint thanks to @Ocramiusobject type hint thanks to @shulard26: completes hasSomething & removeSomething methods on the Classgenerator
void return type declaration.iterable type declaration.Zend\Code\Generator\MethodGenerator#getReturnType() accessor.Total issues resolved: 5
90: ClassScanner::getInterfaces() don't work correctly with Interface
Zend\Code\Scanner\ClassScanner to detect multiple interface inheritance.Zend\Code\Generator\ParameterGenerator to allow copying parameter signatures
for non-optional parameters that are still nullable via a default = null
value.Zend\Code\Generator\ValueGenerator so that class constants can now
be generated with arrays as default value (supported since PHP 5.6).Total issues resolved: 5
## Added - Nothing. ## Deprecated - Nothing. ## Removed - Nothing. ## Fixed - #59 fixes an issue with detection of multiple trait use statements. - #7
## Added - #66 publishes the documentation to https://docs.zendframework.com/zend-code/. ## Deprecated - Nothing. ## Removed - Nothing. ## Fixed - #61
TokenArrayScanner when scanning closures.zend-stdlib now allows either the 2.7 or 3.0 series, as the APIs consumed by zend-code are compatible across versions.
\n for line endings in generated code, vs PHP_EOL, ensuring cross-platform consistency.### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #34 method name cannot be optional when adding a method to a class g
This section refers to breaking changes: to upgrade, please refer to the migration documentation.
This section refers to breaking changes: to upgrade, please refer to the migration documentation.
string, int, float, bool passed to Zend\Code\Generator\ParameterGenerator#setType() are no longer ignored in generated code #30Zend\Code\Generator\ParameterGenerator via Zend\Code\Generator\ParameterGenerator::fromReflection(). #30Zend\Code\Generator\InvalidArgumentException being thrown. #30Zend\Code\Generator\ParameterGenerator::$simple was removed. #30Zend\Code\Generator\ParameterGenerator#$type is now a null|Zend\Code\Generator\TypeGenerator: was a string before. #30Zend\Code\Generator type-hints are now always prefixed with the namespace separator \. #30Zend\Code\Reflection\ParameterReflection#getType() was renamed to Zend\Code\Reflection\ParameterReflection#detectType() in order to not override the inherited ReflectionParameter#getType(), introduced in PHP 7. #30Zend\Code\Generator\MethodGenerator#setReturnType(). #30Zend\Code\Generator\ParameterGenerator#setType() and Zend\Code\Generator\ParameterGenerator#getType(). #30Zend\Code\Generator\ParameterGenerator#setVariadic() and Zend\Code\Generator\ParameterGenerator#getVariadic(). #30Zend\Code\Generator\ParameterGenerator#setReturnsReference(). #30Zend\Code\ParameterGenerator::$simple was removed. #30MethodScanner::setVisibility() method to raise a package-specific InvalidArgumentException instead of
the non-existent package Exception class when an invalid visibility is provided.This section refers to breaking changes: please refer to docs/book/migration.md for migration instructions.
string, int, float, bool passed to Zend\Code\Generator\ParameterGenerator#setType()
are no longer ignored in generated code #30Zend\Code\Generator\ParameterGenerator via
Zend\Code\Generator\ParameterGenerator::fromReflection(). #30Zend\Code\Generator\InvalidArgumentException being thrown.
#30Zend\Code\Generator\ParameterGenerator::$simple was removed. #30Zend\Code\Generator\ParameterGenerator#$type is now a null|Zend\Code\Generator\TypeGenerator: was a
string before. #30Zend\Code\Generator type-hints are now always prefixed with the namespace separator \.
#30Zend\Code\Reflection\ParameterReflection#getType() was renamed
to Zend\Code\Reflection\ParameterReflection#detectType() in order to not override the inherited
ReflectionParameter#getType(), introduced in PHP 7. #30Zend\Code\Generator\MethodGenerator#setReturnType().
#30Zend\Code\Generator\ParameterGenerator#setType() and
Zend\Code\Generator\ParameterGenerator#getType(). #30Zend\Code\Generator\ParameterGenerator#setVariadic() and
Zend\Code\Generator\ParameterGenerator#getVariadic(). #30Zend\Code\Generator\ParameterGenerator#setReturnsReference().
#30Zend\Code\ParameterGenerator::$simple was removed. #30## Added - Nothing. ## Deprecated - Nothing. ## Removed - Nothing. ## Fixed - #51 updates the zend-stdlib dependency to allow either 2.7 or 3.0 releas
# CHANGELOG ## 2.6.2 - 2015-01-05 ### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #31 updated license year.
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #25 changes the doctrine/common suggestion/dev-dependency to the mor
doctrine/common suggestion/dev-dependency to the more specific
doctrine/annotations package (which is what is actually consumed).### Added - #12 adds the ability to generate arrays using either long/standard syntax (array(...)) or short syntax ([...]). This can be accomplished b
array(...)) or short
syntax ([...]). This can be accomplished by setting the value type to
ValueGenerator::TYPE_ARRAY_SHORT instead of using TYPE_ARRAY.
Additionally, you can use TYPE_ARRAY_LONG instead of TYPE_ARRAY; the two
constants are synonyms.Zend\Code\Generator\InterfaceGenerator.^2.6|^3.0, and changes its
internal usage to use the triggerEventUntil() signature.### Added - Nothing. ### Deprecated - Nothing. ### Removed - #10 removes a development dependency on zendframework/zend-version. - #23 removes a requi
Zend\Code\Generator\ValueGenerator: setConstants() and getConstants()
can now receive/emit either an SPL ArrayObject or
Zend\Stdlib\ArrayObject. Since these are functionally equivalent, however,
you will experience no change in behavior.3: ClassScanner::isInstantiable() should return false for traits
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.