Reduce calls to Scope->getType(). Cheap checks first.#2071
Reduce calls to Scope->getType(). Cheap checks first.#2071ondrejmirtes merged 1 commit intophpstan:1.9.xfrom
Conversation
|
Oh yeah 😊 Thank you 😊 If you find more of these that'd be great! |
|
I think the Php Inspections (EA Extended) plugin for PhpStorm had a inspection for non optional conditions. Maybe it can find some more stuff? 🤔 |
|
@voku I don't have this plugin. if you find something useful, even if its just a bottleneck without a idea to optimize it, feel free to report. someone will help you :) |
@ondrejmirtes I thought about whether we should have a few performance oriented rules. somethink like another rule could be wdty? |
|
These rules are really hard to do. Maybe once we have the contro flow graph, it will become easier. |
blackfire run php bin/phpstan -vvv --debug