#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.
#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.
MethodGenerator::copyMethodSignature()
constructor that
only copies the method declaration with no body nor docblock.omitdefaultvalue
key when using
ParameterGenerator::fromArray()
ParameterGenerator
is always a ValueGenerator
Total issues resolved: 6
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.2
use
statements (experimenting with OpCache
OPCODE inlining optimisations)isInternalPhpType
twice in the TypeGenerator
Total issues resolved: 16
object
type hint thanks to @Ocramiusobject
type hint thanks to @shulardvoid
return type declaration.iterable
type declaration.Zend\Code\Generator\MethodGenerator#getReturnType()
accessor.Total issues resolved: 5
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
TokenArrayScanner
when scanning closures.