Skip to content

Releases: phpstan/phpstan-nette

0.10.1

22 Jul 19:56

Choose a tag to compare

  • Get the right component type with array access (c66d80c) - #24
  • UI\Component::getPresenter dynamic return type extension (#26), thanks @xificurk!

0.10

24 Jun 19:00

Choose a tag to compare

  • Support Nette\LegacyObject (da7e882)
  • HtmlMethodReflection: magic getters return mixed (fb1b40f) - #18, thanks @CzechBoy!
  • Presenter::getSession dynamic return type extension - #19, thanks @CzechBoy!
    * Component::lookup return type extension - #17, thanks @CzechBoy!
  • Composer: replaced some requirements with conflicts - #22, thanks @lookyman!

0.9

29 Nov 13:47

Choose a tag to compare

0.9
  • Updated for PHPStan 0.9
  • Return mixed instead of object from \Nette\DI\Container::getService() (688dff7)
  • Service locator methods should rather return mixed than the documented object (d3623c7)
  • Service locator dynamic return type extension - support createService() (2d93d16)

0.8.3

09 Aug 12:37

Choose a tag to compare

Fixed infinite loop #11

0.8.2

06 Aug 19:50

Choose a tag to compare

  • More compatibility with PHP 7.2 #10
  • DoNotExtendNetteObjectRule: Check only direct child of Nette\Object #10

0.8.1

28 Jul 06:58

Choose a tag to compare

Improve compatibility with PHP 7.2. #9

0.8

23 Jul 21:10

Choose a tag to compare

0.8
  • Requires PHPStan 0.8
  • Removed SmartObjectPropertiesClassReflectionExtension because @Property annotations are already fully supported by PHPStan 0.8
  • Dynamic return type Nette\Forms\Container::getValues($asArray) (thanks @CzechBoy!)

0.7

14 May 21:01

Choose a tag to compare

0.7

Requires PHPStan 0.7.

0.6.3

12 Mar 11:31

Choose a tag to compare

  • Support Nette 3.0 - experimental
  • earlyTerminatingMethodCalls for presenter methods

0.6.2

30 Jan 21:02

Choose a tag to compare

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)