Skip to content

Releases: phpstan/phpstan-nette

0.8.2

06 Aug 19:50
Compare
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
Compare
Choose a tag to compare

Improve compatibility with PHP 7.2. #9

0.8

23 Jul 21:10
Compare
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
Compare
Choose a tag to compare
0.7

Requires PHPStan 0.7.

0.6.3

12 Mar 11:31
Compare
Choose a tag to compare
  • Support Nette 3.0 - experimental
  • earlyTerminatingMethodCalls for presenter methods

0.6.2

30 Jan 21:02
Compare
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)

0.6.1

21 Jan 18:41
Compare
Choose a tag to compare
  • Ignore static methods when resolving method from property access
  • Rule for checking whether a class extends Nette\Object - recommend Nette\SmartObject trait

0.6

15 Jan 22:30
Compare
Choose a tag to compare
0.6
  • Added more universal objects
  • Requires PHPStan 0.6

0.5.1

08 Jan 15:44
Compare
Choose a tag to compare
  • Event listener method returns void
  • Improved compatibility with PHPStan 0.6

0.5

01 Jan 23:07
Compare
Choose a tag to compare
0.5

Require PHPStan 0.5