Skip to content

Releases: nette/php-generator

Released version 4.0.8

30 Jul 14:04
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.3
  • Factory: properties in readonly classes are not readonly
  • FunctionLike: added getParameter() & hasParameter()
  • ConstantsAware: added hasConstant() (#133)

Released version 4.0.7

26 Apr 15:16
@dg dg
Compare
Choose a tag to compare
  • Printer: added $singleParameterOnOneLine (#132)
  • fixed class resolving in trait usages #128
  • Printer: multiline attributes are in own attribute block
  • Printer: attributes on parameters are placed on its own line
  • coding style

Released version 4.0.6

13 Mar 15:26
@dg dg
Compare
Choose a tag to compare
  • added support for typed constants
  • Printer: print brace on next line when method/function has typehint
  • Printer: promoted parameters / parameter with attributes are always multiline
  • Printer: printAttributes & printReturnType are protected #123
  • used PhpStorm Language attribute

Released version 4.0.5

06 Oct 20:37
@dg dg
Compare
Choose a tag to compare
  • added support for PHP 8.2 features: DNF types, constants in traits, readonly classes, Type::True
  • Type: constants are PascalCase
  • Extractor: keeps the first comment in the method #119
  • Printer: allow customizing comment formatting through protected printDocComment (#118)
  • Helpers::formatDocComment() added option $forceMultiLine
  • Factory: object class contains path from root namespace (#117)
  • Extractor: Fixed extracting enum method body #115 (#116)
  • PhpNamespace: better use-statements sorting behavior

Released version 3.6.9 (end of support)

06 Oct 20:28
@dg dg
Compare
Choose a tag to compare
  • Extractor: keeps the first comment in the method #119
  • Factory: object class contains path from root namespace (#117)
  • Extractor: Fixed extracting enum method body #115 (#116)
  • Type: constants are PascalCase

Released version 4.0.3

12 Sep 22:59
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.2
  • Dumper::dumpObject() refactoring
  • Printer: added $linesBetweenUseTypes (#114)

Released version 3.6.8

12 Sep 22:57
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.2
  • Extractor: added support for Readonly promoted parameters (#111)

Released version 4.0.2

21 Jun 12:07
@dg dg
Compare
Choose a tag to compare
  • Printer: added $bracesOnNextLine #112
  • Extractor: added support for Readonly promoted parameters (#111)
  • Printer: refactoring
  • Dumper: supports __serialize()
  • Dumper, Helpers::formatDocComment(), Printer::printFunction() & etc normalizes whitespace
  • Printer: always prints trailing comma #106
  • TraitType: traits cannot have constants

Released version 4.0.1

10 Mar 02:53
@dg dg
Compare
Choose a tag to compare
  • ClassType divided into InterfaceType, TraitType & EnumType
  • Enum: value can be expression
  • Extractor: supports promoted parameters #103
  • Extractor: maintains exact visibility
  • PhpNamespace: added removeUse() #102
  • constants are PascalCase
  • strict fixes
  • ClassType::__clone() clones traits

Released version 3.6.7

10 Mar 02:51
@dg dg
Compare
Choose a tag to compare
  • Extractor: supports promoted parameters #103
  • Extractor: maintains exact visibility
  • PhpNamespace: added removeUse() #102
  • constants are PascalCase
  • ClassType::__clone() clones traits