Releases: phpstan/phpstan-nette
Releases · phpstan/phpstan-nette
0.8.3
0.8.2
0.8.1
0.8
0.7
Requires PHPStan 0.7.
0.6.3
- Support Nette 3.0 - experimental
- earlyTerminatingMethodCalls for presenter methods
0.6.2
Added three new extensions for better code analysis:
Nette\ComponentModel\Container::getComponent()
knows type of the component because it reads the return type oncreateComponent*
(this works best in presenters and controls)Nette\DI\Container::getByType
andcreateInstance
return type based on first parameter (Foo::class
).- Methods with fluent interfaces on
Nette\Forms\Controls\BaseControl
now return the type they were called on (so for exampleTextInput
, notBaseControl
)
0.6.1
- Ignore static methods when resolving method from property access
- Rule for checking whether a class extends Nette\Object - recommend Nette\SmartObject trait
0.6
- Added more universal objects
- Requires PHPStan 0.6
0.5.1
- Event listener method returns void
- Improved compatibility with PHPStan 0.6