Skip to content

Releases: humbug/php-scoper

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