Skip to content

0.6.2

Compare
Choose a tag to compare
@ondrejmirtes ondrejmirtes released this 30 Jan 21:02

Added three new extensions for better code analysis:

  • Nette\ComponentModel\Container::getComponent() knows type of the component because it reads the return type on createComponent* (this works best in presenters and controls)
  • Nette\DI\Container::getByType and createInstance 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 example TextInput, not BaseControl)