Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Coming from #1878 (comment)
I thought a lot about how to put all the "requirements" from phpstan/phpstan#8173 into a single warning message. In the end I found that there's a dilemma we cannot solve:
In fact I think the actual (potential) problem we want to highlight here is the missed breakpoints issue. The Xdebug performance impact seems negligible to me because it is only equal to the time that it takes to restart PHPStan, which is "constant" compared to the overall time it takes to analyse any target source code (cf. my simple benchmark for a medium-sized project).
You may want to "educate" people not to have Xdebug enabled in order to improve performance, but I really think this is not the way to go.
If you really, really want me to come up with a lengthy message that does include all of that, please let me know and I'll give it another shot.