Skip to content

Releases: humbug/php-scoper

0.8.0

09 Jun 14:58
21bd501
Compare
Choose a tag to compare
0.8.0 Pre-release
Pre-release

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
83b9abb
Compare
Choose a tag to compare
0.7.0 Pre-release
Pre-release

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

  • Remove self-update command (#199, #206)

0.6.1

07 Apr 20:25
561bcde
Compare
Choose a tag to compare
0.6.1 Pre-release
Pre-release

Empty release: this release is just to trigger a new build and release the PHAR.

0.6.0

27 Feb 23:36
64c4b2f
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release

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
600abec
Compare
Choose a tag to compare
0.5.1 Pre-release
Pre-release

Add auto-release signed PHAR (#124, #125, #126)

0.5.0

29 Oct 22:46
Compare
Choose a tag to compare
0.5.0 Pre-release
Pre-release

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
Choose a tag to compare
0.4.0 Pre-release
Pre-release
  • 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)

0.3.0

28 Sep 18:13
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release
  • Add the whitelist feature (#103)

0.2.0

23 Sep 16:18
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release
  • Scope file binaries (#69)
  • Add patchers (#67)
  • Add support for class_exists() (#74)
  • Add self-update command (#51)
  • Add finders (#89)
  • Revamp the implementation (#92, #94) by:
    • reasoning with only FQ
    • reworking the tests to have a clear spec structure
  • Add working dir option (#101)

0.1.0

17 Jun 21:13
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

First workable version of PHP-Scoper:

  • Prefix all the code found
  • Leave unchanged non PHP files
  • Don't prefix functions, classes and constants living in the global namespace