Skip to content

Releases: Brain-WP/BrainMonkey

v2.6.1

11 Nov 18:06
a31c845
Compare
Choose a tag to compare

Added

  • Compatibility with PHP 8.1 (props @jrfnl)

Changed

  • Improved QA GitHub action workflow for speed, robustness, compat with PHP 8.1, and start testing for PHP 8.2 (props @jrfnl)
  • Improved doc-block for Filters\has (props @shvlv)
  • Improved documentation for added hooks (props @Idealien)

Fixed

  • Allow for fully-qualified parameter type declarations (props @tfrommen)
  • Fixed ClosureParamStringForm compat with PHP 5.6 (props @jrfnl)

v2.6.0

09 Dec 15:05
7042140
Compare
Choose a tag to compare

Added

  • Added stub for esc_xml(), wp_json_encode, user_trailingslashit(), _n, and _nx (props @jrfnl)

Docs

  • Fix docs for has_action/has_filters (props @coreyworrell)
  • Document newly stubbed WP functions (props @jrfnl)

v2.5.0

09 Oct 07:03
Compare
Choose a tag to compare

Added

  • HooksStorage::hookPriority (internal)

Changed

  • has_filter / has_action return true instead of the added priotity. (See #79 props @widoz)

Fixed

  • See Changed

v2.4.2

05 Oct 08:32
Compare
Choose a tag to compare

Added

Nothing

Changed

  • Moved CI from Travis to GitHub actions
  • Moved PHPUnit cross-version helpers (by @jrfnl) from single tests to their UnitTestCase parent class

Fixed

Nothing

v2.4.1

04 Oct 16:55
f8273d8
Compare
Choose a tag to compare

Added

Nothing.

Changed

  • Improved Documentation
  • Updated DealerDirect Composer plugin props @jrfnl

Fixed

Nothing.

v2.4.0

24 Nov 16:20
Compare
Choose a tag to compare

Added

  • Stubs for do_action_deprecated and apply_filters_deprecated

Changed

  • Improved Travis workflow, including PHP cross-version compatibility, props @jrfnl
  • Added codecov.io to Travis
  • Improved PHPUnit compatibility across PHP versions, props @jrfnl

Fixed

  • Fixed logic bug in HookStorage::parseArgsToAdd, props @szepeviktor
  • Fix implode argument order (PHP 7.4 compatibility fix), props @jrfnl
  • Many code styling fixes and cleanup, props @jrfnl

v2.3.1

26 Jul 19:02
Compare
Choose a tag to compare

Added

  • Nothing

Changed

  • Nothing

Fixed

  • byDefault needs to be allowed for functions expectations

v2.3.0

22 Jul 16:17
Compare
Choose a tag to compare

Added

  • Actions\expectRemoved and Filters\expectRemoved (see #45)
  • Functions\stubTranslationFunctions()
  • Functions\stubEscapeFunctions()
  • Pre-defined stubs for is_wp_error() and absint
  • Default params handling for added and removed hooks
  • Tests for new features
  • Basic functional tests
  • Docs for new features

Changed

  • Re-structured tests folder and test suites
  • Deleted bootstrap file and rely on autoload-dev only
  • Improved base test class
  • Docs improvements in various files (ses #49)
  • Improved various doc blocks and removed all @throws occurrences

Fixed

  • Minor tests issues
  • End-of-line inconsistencies

v2.2.1

15 Mar 14:06
Compare
Choose a tag to compare

Fixed

  • Make sure that static methods can be passed as string, as this is an acceptable way in PHP to pass a callable. See #47
  • Several docs changing

Added

  • Added Mockery PHPUnit integration to the documentation examples.
  • PHP 7.2 and PHP 7.3 test in Travis

v2.2.0

01 Dec 16:39
Compare
Choose a tag to compare

Fixed

Nothing

Changed

  • Mockery is now allowed in version range >=0.9 < 0.2. Mockery v1 is compatibe with BM itself, and if it breaks something in the package using BM, it will always be possible restrict the requirement there.

Added

Nothing