Skip to content

Releases: inpsyde/objects-hooks-remover

v1.0.0

20 May 17:08
782b914
Compare
Choose a tag to compare

Changed

  • Modernize the codebase to support recent PHP versions and up-to-date Syde coding standards.
  • Move logic from the utils.php file to an internal Functions class (all-static, only for encapsulation and autoload).
  • Modernize QA:
    • Move out from Travis to GitHub actions.
    • Rewrite tests, update the PHPUnit version. Tests now include the real WordPress functions instead of stubs.
    • Added static analysis.
  • In remove_closure_hook() it is now possible to use "mixed" as the target parameter type when the closure param declares no type.
  • License change from MIT to GPL due to usage of WordPress functions.
  • README refresh.

Added

  • Introduced remove_all_object_hooks().
  • Introduced remove_static_method_hook() to replace the now deprecated remove_class_hook() (which is converted to an alias).

v0.1.1

19 Dec 18:26
Compare
Choose a tag to compare

Fixed

  • Fix PHP 7 compatibility when removing hook with closures declaring param types.

v0.1.0

19 Dec 18:26
Compare
Choose a tag to compare

First release.