Releases: nette/php-generator
Releases · nette/php-generator
Released version 2.4.1
Released version 2.4.0
- requires PHP 5.6
- uses Nette\SmartObject & StaticClass
- deprecated
addDocument()
,setDocuments()
andgetDocuments()
and replaced withaddComment()
,setComment()
andgetComment()
For the details you can have a look at the diff.
Released version 2.3.6
- Helpers::
dump()
support for infinite floats - added
addComment()
,setComment()
andgetComment()
For the details you can have a look at the diff.
Released version 2.3.5
Released version 2.3.4
- ClassType::
from()
fixes for ReflectionObject - added support for anonymous classes
- Helpers::
dump()
throws exception for closures - PhpFile::
__toString()
: brackets are no longer set when generating classes from global namespace only
For the details you can have a look at the diff.
Released version 2.3.3
- Method, Parameter: added support for PHP 7 type hints
- Method, Parameter, Property: added and used constructors
- PhpNamespace::
unresolveName()
supports for build-in types - ClassType: prints one 'use' keyword per trait
- Method::
setParameters()
& ClassType::setProperties()
&setMethods()
retain names in keys
For the details you can have a look at the diff.
Released version 2.3.2
- Method::from() added support for closures & global functions
- fixed inconsistencies between 'nullable string' and 'string' properties
- fixed content for properties $documents
- ClassType::__toString() refactoring
- Method, Parameter: added support for build-in types callable, self, parent
- Method, ClassType: better whitespace usage
For the details you can have a look at the diff.
Released version 2.2.3
- travis: migrating to container-based infrastructure
- improved coding style
For the details you can have a look at the diff.
Released version 2.3.1
- travis: migrating to container-based infrastructure
- improved coding style
For the details you can have a look at the diff.
Released version 2.2.2
- added Helpers::MAX_DEPTH
- phpDocs: new line after multiline docs removed
For the details you can have a look at the diff.