Yes, absolutely! Unlike tools in the PHP ecosystem that share libraries like PHP-Parser, and BetterReflection, we had to build the entire Mago stack from scratch in Rust: lexer, parser, AST, name resolver, reflections (codex), and more.
(1/3)
Worked on reducing overhead of #betterreflection to improve performance of #phpstan and #rector for projects which register a custom autoloader.
Our legacy projects autoloader which works in a include-path like fashion triggered lots of IO before.
Should be gone in next release
As far as I know BetterReflection refers to the list of features, and PHAR support isn't one of them... But maybe @RoaveTeam can help, it's their concept after all 🙂.
github.com/ondrejmirtes/Bett…
PS. @OndrejMirtes you still refer to Roave's package in readme 😉.
Yes, I saw your diff, and it's not "a bit". I'm interesting by your changes, especially PHP version compat. PHPStan is a great contribution to PHP ecosystem, and very popular (thanks for your work), and I was affraid that your fork will overshadow BetterReflection.
What? Roave/BetterReflection is alive and kicking, maintained and with 6.0.0 soon to be released. I have an up-to-date fork because I sometimes need bit different behaviour for different purposes.
But you can use Roave/BetterReflection without any issues.
@RoaveTeam BetterReflection, some PR are closed, to be part of WorseReflection, itself archived to be merged in the phpactr project and not available as a lib. @OndrejMirtes forked BetterReflection to make it part of @phpstan (after NS rename). What's the hell is that!
This is huge. BetterReflection plays a big part in PHPStan’s usefulness, it enables analysis of legacy codebases with static reflection.
PHPStan 1.3.0 based on BR 5.0 is coming soon with full PHP 8.1 Enums support. You can already play with it on phpstan.org!
Hey, @asgrim and @Ocramius, I have a question regarding BetterReflection. Why it supports only limited set of PHP versions? PHP >=7.4.1,<7.5.0.
Any plans to update? I was hoping to abandon my reflection library, but it looks that BR isn't maintained actively too.
❤️ Simple PHP Code Parser - ❤️ Simple PHP Code Parser It based on code from “JetBrains/phpstorm-stubs” but instead of Php-Reflection we now use nikic/PHP-Parser, BetterReflection, phpDocumentor and PHPStan/phpdoc-parser internally. So, you can... tmblr.co/ZmVQWyYl6T0Pui00