- fixed templates
- dropped support for PHP < 7.2
- added support for PHP 8
- added support for phpspec 7
- added support for Twig 2
- fixed method opening curly brace
- fixed property collection
- dropped support for PHP < 7
- added scalar type hints
- added return type hints
- changed maximum method argument line length from 120 to 80
- changed opening curly brace to be on the same line as the method closing parenthesis, when arguments are on many lines
- changed properties to not have empty lines between them, except if they have PHPdoc
Code generated before:
<?php
namespace Vendor\Project;
class MyClass
{
private $variableNamesWouldNotBeVeryLong;
private $imagineCodeWithVariableNamesThatNeverEnd;
/**
* @var string
*/
private $number;
public funtion myMethod($variableNamesWouldNotBeVeryLong, $isFirst, $thisIsTheLongestVariableNameEver)
{
return 42;
}
public function myOtherMethod()
{
return [];
}
}
Code generated after:
<?php
namespace Vendor\Project;
class MyClass
{
private $variableNamesWouldNotBeVeryLong;
private $imagineCodeWithVariableNamesThatNeverEnd;
/**
* @var string
*/
private $number;
public funtion myMethod(
bool $variableNamesWouldNotBeVeryLong,
string $isFirst,
float $thisIsTheLongestVariableNameEver
) : int {
return 42;
}
public function myOtherMethod() : array
{
return [];
}
}
- added support for Twig 2
- fixed missing empty line abovr namespace
- added support for PHP 7
- custom templates now have a higher priority
- do not generate namespace statement if not set
- fixed return tag
- updated dependency on memio/model to v1.3
- actually merged the PR about the new PHPdoc tags
- added abstract class
- added
return
PHPdoc tag - added
throws
PHPdoc tag
- fixed Locate namespace
- fixed version in README
- updated documentation
- imported twig template engine from memio/pretty-printer v1.0.0-rc5