Skip to content

0.6.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@theofidry theofidry released this 27 Feb 23:36
64c4b2f

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)