Releases: humbug/php-scoper
Releases · humbug/php-scoper
0.9.1
06 Aug 18:05
Compare
Sorry, something went wrong.
No results found
0.9.0
04 Aug 17:49
Compare
Sorry, something went wrong.
No results found
Features
Smarter function arguments scoping (#228 )
Use a random prefix for PHP-Scoper (#234 )
Whitelist global functions by default (#231 )
Allow to whitelist functions (#241 )
Allow to whitelist symbols with a pattern (#243 )
Whitelist classes belonging to the global namespace by default (#251 , #252 )
Add Laravel support (#246 )
Bugfixes
Fix string literal scoping (#235 )
Fix whitelisting functions (#238 )
Misc
Add a warning regarding a limitation with the namespace whitelist (#230 )
Add a test to ensure the e2e rule is always in sync in the Makefile (#240 )
Rework the whitelist API (#247 )
Fail when files are found in _specs (#232 )
Improve the Makefile help (#229 )
Add more contribution doc (#233 )
0.8.1
13 Jun 08:54
Compare
Sorry, something went wrong.
No results found
Bugfixes
Fix the namespace whitelisting autoloading (#223 )
0.8.0
09 Jun 14:58
Compare
Sorry, something went wrong.
No results found
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
The API signature has changed to convert the array $whitelist into the Whitelist object (#213 )
Constants from the global namespace are now whitelisted by default (#218 )
0.7.0
30 May 20:01
Compare
Sorry, something went wrong.
No results found
Features
Add the prefix to the configuration (#186 )
Bugfixes
Ensure the whitelist feature works well on interfaces (#205 )
Fix the scoping of JSON files (#207 )
Fix scoping of namespaces which have a dash in their namespace for string literals (#211 )
Misc
BC Breaks
0.6.1
07 Apr 20:25
Compare
Sorry, something went wrong.
No results found
Empty release: this release is just to trigger a new build and release the PHAR.
0.6.0
27 Feb 23:36
Compare
Sorry, something went wrong.
No results found
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 )
Misc
Remove useless parameter & Refactor node cloning (#134 )
Rework config and command (#144 )
Add file contents to the Scoper (#146 )
Switch to Humbug box (#157 )
Add Infection (#172 , #176 )
0.5.1
01 Nov 13:17
Compare
Sorry, something went wrong.
No results found
0.5.0
29 Oct 22:46
Compare
Sorry, something went wrong.
No results found
Features
Check requirements when running from a PHAR (#116 )
Add an init command (#114 )
Bugfixes
Account for PHP case-insensitiveness (#118 )
Misc
Make prefixed applied for PHP-Scoper PHAR random (#119 )
0.4.0
01 Oct 10:04
Compare
Sorry, something went wrong.
No results found
Fix usage of special keywords as parameters (#106 )
Make traverser return a new instance for each file (#107 )
Add no-config option and improve logging (#108 )
Fix function whitelisting with variables (#109 )