{"repo":"phpstan/phpstan-nette","free":true,"listed":false,"github":"https://github.com/phpstan/phpstan-nette","clone":"git clone https://github.com/phpstan/phpstan-nette.git","description":"Nette Framework class reflection extension for PHPStan & framework-specific rules","language":"PHP","stars":118,"topics":["php","nette-framework","phpstan","php7","static-analysis","static-analyzer","static-code-analysis","testing"],"license":"MIT","category":"dev-tools","readme_excerpt":"Nette Framework extension for PHPStan PHPStan Nette Framework This extension provides following features: Nette\\ComponentModel\\Container::getComponent() knows type of the component because it reads the return type on createComponent (this works best in presenters and controls) Array access on components ( $component['name'] ) resolves types via createComponent methods Nette\\DI\\Container::getByType and createInstance return type based on first parameter ( Foo::class ). Nette\\Forms\\Container::getValues return type based on $asArray parameter. Nette\\Forms\\Container::getUntrustedValues return type based on mapping class parameter. Nette\\Forms\\Controls\\BaseControl fluent methods return static instead of BaseControl . Nette\\ComponentModel\\Component::lookup return type based on $throw parameter. Nette\\Application\\UI\\Component::getPresenter return type based on $throw parameter. Nette\\Application\\UI\\Presenter::getSession returns Session or SessionSection based on arguments. Dynamic methods of Nette\\Utils\\Html Magic Nette\\Object and Nette\\SmartObject properties Event listeners through the on properties Presenter @inject properties are treated as initialized. Defines early terminating method calls for Presenter methods to prevent Undefined variable errors Understand the exact array shape coming from Nette\\Utils\\Strings::match() and Nette\\Utils\\Strings::matchAll() based on pattern Nette\\Utils\\Strings::replace() callback closure parameter type inferred from regex pattern It also contains","default_branch":null,"files":null,"tree":[],"storefront":"/r/phpstan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phpstan/phpstan-nette/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}