Simple demonstration about bug that was talked on Symfony Slack channel - https://symfony-devs.slack.com/archives/C8SFXTD2M/p1612885598251900
- Clone repository
git clone https://github.com/tarlepp/phpstan-trait-bug.git - Run
composer installon that directory where you cloned it - Run
./vendor/bin/phpstan analyze src
With that you're should get following output;
da_wunder@wunder-VirtualBox:~/PhpstormProjects/phpstan-trait-bug$ ./vendor/bin/phpstan analyze src
2/2 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ --------------------------------------------
Line Foo.php
------ --------------------------------------------
10 No error to ignore is reported on line 10.
------ --------------------------------------------
[ERROR] Found 1 error
da_wunder@wunder-VirtualBox:~/PhpstormProjects/phpstan-trait-bug$ Which is misleading because that Foo.php doesn't even have anything on line 10
Copyright © 2021 Tarmo Leppänen