- added PHP 8 support
- added phpspec 7 support
Dropped support for PHP <7.2
Other upgrades:
- upgraded PHP CS Fixer (from 2.10 to 2.16)
- upgraded phpspec (from 4.3 to 6.1)
BC Breaks - removed deprecated api:
- removed all
make
static constructors
Normalization from float to double, thanks to @ItsKelsBoys
- upgraded PHP CS Fixer (from 1.6 to 2.10)
- upgraded phpspec (from 3.0 to 4.3)
Added support for PHP 7.2, thanks to @roukmoute
BC break: Object has be renamed to Objekt, has it is a reserved keyword.
This release is the same as 2.0.0-alpha3, compared to 1.4.1 it brings the following features:
Dropped support for PHP < 7
This means we now can use:
- scalar type hints
- return type hints
- callable type hint, without having to check PHP version
All make
static constructor were created for PHP < 5.6, they're
now deprecated. Here's an example of what to use instead:
(new Method('sayHello'))
->addArgument(new Argument('string', 'name')))
;
- added return type hints
- fixed PHPdoc return type hints
Dropped support for PHP < 7
This means we now can use:
- scalar type hints
- return type hints
- callable type hint, without having to check PHP version
All make
static constructor were created for PHP < 5.6, they're
now deprecated. Here's an example of what to use instead:
(new Method('sayHello'))
->addArgument(new Argument('string', 'name')))
;
- reverted the FQCN change
- improve
FullyQualifiedName
according to PHP Name resolution rules - added support for PHP 7
- used
@return self
- used
Objekt[]
when dealing with collections of objects
- fixed PHPdoc
- removed SpecGen to fix dependency cycles
- fixed CS
- fixed
ParameterTag#make
- replaced phpspec extension with SpecGen
- changed Argument.type to be a Fully Qualified Class Name
- added
return
PHPdoc tag - added
throws
PHPdoc tag
- integer, boolean and NULL will be normalized to int, bool and null
- fixed typos in documentation
- imported models from memio/memio v1.0.0-rc7