Roave/BetterReflection

Version that supports both versions of PHP

jakublabno opened this issue · 4 comments

I don't see any version that works on both, 7.4 and 8.0 PHP versions, could you add support?

Duplicate of #984 - specifically

BR 5.1.x running in PHP 8 can analyse all older versions of PHP code, so it doesn't matter what version of PHP the codebase being analysed is, as long as the version of PHP running BR is PHP 8+

Hope this helps! Please let us know if you have any further questions :)

So it's wrong spec in composer
image

Not quite; you have to run it with PHP 8/8.1, but it can analyse code that runs on older PHP versions, if that makes sense :) for example you could run it in a Docker container to analyse