Releases: nette/php-generator
Releases · nette/php-generator
Released version 3.2.0
New features
- added
Printer
, code from __toString moved to Printer - added
PsrPrinter
, compatible with PSR-2 and PSR-12 [Closes #30] - added
PhpNamespace::add()
[Closes #27] - added
NameAware::cloneWithName()
- added
FunctionLike::removeParameter()
&ClassType::removeMethod()
,removeProperty()
,removeConstant()
- added
ClassType::addMember()
[Closes #35] - ClassType: implemented deep clone
- ClassType: added
VISIBILITY_*
constants - PhpFile: added setStrictTypes()
Changes
PhpNamespace::add*()
- removed checking whether class already exists - to be consistent with the rest of package (BC break)- FunctionLike: removed setNamespace() (BC break)
ClassType::getNamespace()
is softly deprecated. An object can be in multiple namespaces.- ClassType, Method: added validate(), prevents classes and methods from declared both final and abstract [BC break] (#36)
- __toString converts exceptions to errors
- fine tuned generated coding style
For the details you can have a look at the diff.
Released version 3.1.3
Released version 3.0.5 (EOL)
Released version 3.1.2
- Closure: chops 'uses' when are longer than WRAP_LENGTH
- FunctionLike: chops parameters when are longer than WRAP_LENGTH #28
- Helpers::formatArgs() chops ?* parameters when are longer than WRAP_LENGTH
- Helpers: changed WRAP_LENGTH to 100, added INDENT_LENGTH
- added Helpers::
tabsToSpaces()
For the details you can have a look at the diff.
Released version 3.0.4
- Closure: chops 'uses' when are longer than WRAP_LENGTH
- FunctionLike: chops parameters when are longer than WRAP_LENGTH #28
- Helpers::formatArgs() chops ?* parameters when are longer than WRAP_LENGTH
- Helpers: changed WRAP_LENGTH to 100, added INDENT_LENGTH
- added Helpers::
tabsToSpaces()
For the details you can have a look at the diff.
Released version 2.6.4
This is the last v2.x release.
- Closure: chops 'uses' when are longer than WRAP_LENGTH
- FunctionLike: chops parameters when are longer than WRAP_LENGTH #28
- Helpers::formatArgs() chops ?* parameters when are longer than WRAP_LENGTH
- Helpers: changed WRAP_LENGTH to 100, added INDENT_LENGTH
- added Helpers::
tabsToSpaces()
- travis: added PHP 7.2
For the details you can have a look at the diff.
Released version 3.1.1
Released version 3.0.3
Released version 3.0.2
- PhpNamespace: added support for PHP 7.2 type 'object'
For the details you can have a look at the diff.
Released version 3.1.0
- requires PHP 7.1 and supports PHP up to 7.2
- uses PHP 7.1 type hints and constant visiblity
- removed deprecated stuff
- Parameter::setOptional() triggers deprecation notice