\n
for line endings in generated code, vs PHP_EOL
, ensuring cross-platform consistency.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 #30
Zend\Code\Generator\ParameterGenerator
via Zend\Code\Generator\ParameterGenerator::fromReflection()
. #30
Zend\Code\Generator\InvalidArgumentException
being thrown. #30
Zend\Code\Generator\ParameterGenerator::$simple
was removed. #30
Zend\Code\Generator\ParameterGenerator#$type
is now a null|Zend\Code\Generator\TypeGenerator
: was a string
before. #30
Zend\Code\Generator
type-hints are now always prefixed with the namespace separator \
. #30
Zend\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. #30
Zend\Code\Generator\MethodGenerator#setReturnType()
. #30
Zend\Code\Generator\ParameterGenerator#setType()
and Zend\Code\Generator\ParameterGenerator#getType()
. #30
Zend\Code\Generator\ParameterGenerator#setVariadic()
and Zend\Code\Generator\ParameterGenerator#getVariadic()
. #30
Zend\Code\Generator\ParameterGenerator#setReturnsReference()
. #30
Zend\Code\ParameterGenerator::$simple
was removed. #30