Releases: humbug/php-scoper
Releases · humbug/php-scoper
0.8.0
Features
- Allow to whitelist a namespace (#213, #216, #217)
- Allow to whitelist constants (#214, #219)
- Allow to whitelist constants from global namespace (#218)
Bugfixes
- Fix whitelist case sensitiveness (#222)
Misc
- Ensure PHP-Scoper can only be called from the CLI (#220)
- Ensure string literals in define statements are properly prefixed (#221)
BC breaks
0.7.0
0.6.1
0.6.0
This is a pretty big release. A rough overview of this:
- Symbols (classes, constants & functions) are now always prefixed unless internal. They are determined if internal thanks to BetterReflection
- Code is always wrapped into a namespace
- Strings are now prefixed in most cases
A more detailed list is available below. Also a lot of tests have been added. Because of the nature of this library, testing against real code is very important to ensure everything is working. For this reason more end-to-end tests have been added. One in peculiar is making use of a scoped version of Infection for running the tests.
Features
- Add support for binary files (#132, #147)
- Add PSR-0 support (#142)
- Allow Symfony 4 (#149)
- Use BetterReflection (#117)
- Simplify whitelists (#159)
- Prefix strings (#164)
- Optimize native function and constant calls (#169)
Bugfixes
- Add missing namespace (#138)
- Fix PHP version check (#154)
- Fix prefixing of functions (#155)
- Prefix constants (#158)
- Fix name resolution (#160)
- Fix prefixing of function return typehints (#163)
- Fix prefixing classes used in try/catch blocks (#167)
- Prefix instanceof statements (#168)
- Do not add empty PSR-4 autoload entry (#173)