Skip to content

Releases: nette/php-generator

Released version 2.6.2

18 Mar 15:25
@dg dg
Compare
Choose a tag to compare
  • fixed default values
  • ClassType: checks whether names are valid
  • Helpers::isNamespaceIdentifier() added $allowLeadingSlash
  • Helpers::isNamespace() -> isNamespaceIdentifier()
  • Closure::setUses() checks argument type

For the details you can have a look at the diff.

Released version 2.6.1

14 Mar 17:14
@dg dg
Compare
Choose a tag to compare
  • Helpers::formatArgs() escaped \? means ?
  • Helpers::formatArgs() ...? is substitution for ?*
  • Helpers::formatArgs() refactoring

For the details you can have a look at the diff.

Released version 2.6.0

24 Feb 19:29
@dg dg
Compare
Choose a tag to compare
  • Checks whether names are valid [Closes #24]
  • added GlobalFunction & Closure
  • ClassType: added possibility to define trait resolution rules
  • PhpNamespace: recognizes 'void' and 'iterable' as built-in types
  • deprecated setName() & from() trigger warnings (BC break)
  • added Factory::fromMethodReflection()
  • refactoring: transformed to traits, removed Member

For the details you can have a look at the diff.

Released version 2.5.0

15 Jan 13:42
@dg dg
Compare
Choose a tag to compare
  • added Factory
  • Method, Parameter: added support for PHP 7.1 nullable types
  • Parameter::from() prevents fatal error when default value is not resolvable
  • ClassType: improved rendering of anonymous classes
  • add Constant; class constants can have declared visibility and comment
  • refactoring: extracted base class Member for properties, methods and constants
  • Method::from() sets visibility 'public'
  • Parameters: added hasDefaultValue() as replacement of isOptional()
  • deprecated Parameter::from() and Property::from() (BC break)

Released version 2.4.1

31 Jul 13:53
@dg dg
Compare
Choose a tag to compare
  • ClassType: added @Property $properties (#23)
  • Helpers::dump() native dumping of DateTime & DateTimeImmutable

For the details you can have a look at the diff.

Released version 2.4.0

17 Jun 15:33
@dg dg
Compare
Choose a tag to compare
  • requires PHP 5.6
  • uses Nette\SmartObject & StaticClass
  • deprecated addDocument(), setDocuments() and getDocuments() and replaced with addComment(), setComment() and getComment()

For the details you can have a look at the diff.

Released version 2.3.6

17 Jun 15:31
@dg dg
Compare
Choose a tag to compare
  • Helpers::dump() support for infinite floats
  • added addComment(), setComment() and getComment()

For the details you can have a look at the diff.

Released version 2.3.5

02 Dec 22:32
@dg dg
Compare
Choose a tag to compare
  • ClassType, Method: class types are not resolved when namespace is not specified [#21]

For the details you can have a look at the diff.

Released version 2.3.4

09 Oct 14:36
@dg dg
Compare
Choose a tag to compare
  • 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

14 Sep 18:17
@dg dg
Compare
Choose a tag to compare
  • 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.