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
)