diff --git a/CHANGELOG.md b/CHANGELOG.md index 7108bda..0891741 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,28 @@ # Phony for Kahlan changelog -## Next release +## 0.3.0 (2017-09-29) + +This release uses *Phony* `2.x` under the hood. Check out the +[migration guide][migration-2] for *Phony* `2.x`, which also applies to this +release. - **[BC BREAK]** HHVM is no longer supported ([#216], [#219]). - **[BC BREAK]** Removed `inOrderSequence`, `checkInOrderSequence`, `anyOrderSequence`, and `checkAnyOrderSequence` from the facade ([#215]). +- **[BC BREAK]** Stubs created outside of a mock now have their "self" value set + to the stub itself, instead of the stubbed callback ([#226]). - **[NEW]** Implemented `anInstanceOf()` ([#220]). - **[NEW]** Implemented `emptyValue()` ([#218]). - **[IMPROVED]** Support for PHP 7.2 features, including the `object` typehint ([#224]). +- **[IMPROVED]** Improved the error message produced when a default return value + cannot be produced, because the return type is a final class ([#228]). - **[IMPROVED]** Support for the PHP 7.1 `iterable` typehint in automatically injected suites and tests. - **[IMPROVED]** Reduced the amount of output generated when mocks, stubs, and spies are encountered by `var_dump()` ([#223]). +[migration-2]: https://github.com/eloquent/phony/blob/2.0.0/MIGRATING.md#migrating-from-1x-to-2x [#215]: https://github.com/eloquent/phony/issues/215 [#216]: https://github.com/eloquent/phony/issues/216 [#218]: https://github.com/eloquent/phony/issues/218 @@ -21,6 +30,8 @@ [#220]: https://github.com/eloquent/phony/issues/220 [#223]: https://github.com/eloquent/phony/issues/223 [#224]: https://github.com/eloquent/phony/issues/224 +[#226]: https://github.com/eloquent/phony/issues/226 +[#228]: https://github.com/eloquent/phony/issues/228 ## 0.2.0 (2017-08-17) diff --git a/composer.json b/composer.json index 2de04f5..3b71793 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": ">=7", - "eloquent/phony": "dev-php72", + "eloquent/phony": "^2", "kahlan/kahlan": "4.0.x-dev" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 84d847c..a72a0fc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "d9b2d1f627d3a9e56bd590c91f491e67", + "content-hash": "c77b3422c61156491f6b0f969af01b25", "packages": [ { "name": "eloquent/phony", - "version": "dev-php72", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/eloquent/phony.git", - "reference": "93743231e8cd4c64b423675cae05e704e780aa26" + "reference": "96c6618d54b21b01eacf4b8aea5a279496b466f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/eloquent/phony/zipball/93743231e8cd4c64b423675cae05e704e780aa26", - "reference": "93743231e8cd4c64b423675cae05e704e780aa26", + "url": "https://api.github.com/repos/eloquent/phony/zipball/96c6618d54b21b01eacf4b8aea5a279496b466f6", + "reference": "96c6618d54b21b01eacf4b8aea5a279496b466f6", "shasum": "" }, "require": { @@ -65,7 +65,7 @@ "stubbing", "test" ], - "time": "2017-09-21T12:48:59+00:00" + "time": "2017-09-29T01:22:33+00:00" }, { "name": "kahlan/kahlan", @@ -486,16 +486,16 @@ }, { "name": "paragonie/random_compat", - "version": "v2.0.10", + "version": "v2.0.11", "source": { "type": "git", "url": "https://github.com/paragonie/random_compat.git", - "reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d" + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/634bae8e911eefa89c1abfbf1b66da679ac8f54d", - "reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", "shasum": "" }, "require": { @@ -530,7 +530,7 @@ "pseudorandom", "random" ], - "time": "2017-03-13T16:27:32+00:00" + "time": "2017-09-27T21:40:39+00:00" }, { "name": "psr/log", @@ -1245,7 +1245,6 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { - "eloquent/phony": 20, "kahlan/kahlan": 20 }, "prefer-stable": false,