Open AlexKratky opened 12 months ago
It would be nice to have detection like phpstorm, because $bankAccount variable assigned on first line is never read, only redefined later on, thus its unused and the result of getBankAccount() should not be stored in variable.
I expect I will remove this sniff in future major version. It is job more for PHPStan/Psalm.
It would be nice to have detection like phpstorm, because $bankAccount variable assigned on first line is never read, only redefined later on, thus its unused and the result of getBankAccount() should not be stored in variable.