phpstan-nette icon indicating copy to clipboard operation
phpstan-nette copied to clipboard

Nette Framework class reflection extension for PHPStan & framework-specific rules

Results 23 phpstan-nette issues
Sort by recently updated
recently updated
newest added

I am trying to use phpstan with nette and I have a problem with not recognizing Nette Events (even if this should be supported according to README). My code looks...

> **Note:** This PR body was truncated due to platform limits. This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [phpunit/phpunit](https://phpunit.de/) ([source](https://redirect.github.com/sebastianbergmann/phpunit))...

Adding support for inject attributes https://doc.nette.org/en/best-practices/inject-method-attribute#toc-inject-attributes I am a bit stuck on why the test is failing - same code with native ReflectionProperty works just fine https://3v4l.org/3HF1T Also my usual...

fixes `Nette\Utils\Html::insert(): Argument #2 ($child) must be of type Nette\HtmlStringable|string, XY given`

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [phpunit/phpunit](https://phpunit.de/) ([source](https://togithub.com/sebastianbergmann/phpunit)) | `~9.5.28` -> `~9.6.0` |...

Sub-components accessed via hyphen notation are treated as mixed ```php $this['document']['head']; $this['document-head']; $this->getComponent('document')->getComponent('head'); $this->getComponent('document-head'); ``` Current result ``` 1 Dumped type: HeadControl 2 Dumped type: mixed~null 3 Dumped type: HeadControl...

Unreachable statement - code above always terminates. PHPStan wrongly assumes that this code in Nette\Database\Row always throws Exception and assumes that the further code will not execute. This was not...

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [Eomm/why-don-t-you-tweet](https://redirect.github.com/Eomm/why-don-t-you-tweet) | action | major | `v1` -> `v2` | --- ### Release...