Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start deprecations for 2.next #344

Merged
merged 5 commits into from
Nov 8, 2022
Merged

Start deprecations for 2.next #344

merged 5 commits into from
Nov 8, 2022

Conversation

markstory
Copy link
Member

The tests are currently failing, but I was conflicted on how to proceed.

  • Should we add a method like deprecated(Closure) to chronos' test library?
  • Should we copy the deprecationWarning helper from Cake to chronos as well?

The tests are currently failing, but I was conflicted on how to proceed.

* Should we add a method like `deprecated(Closure)` to chronos' test
  library?
* Should we copy the `deprecationWarning` helper from Cake to chronos as
  well?
@markstory markstory marked this pull request as draft November 4, 2022 02:55
@markstory markstory marked this pull request as ready for review November 7, 2022 15:21
@@ -296,6 +296,8 @@ public function addYears(int $value): ChronosInterface
*/
public function addYear(int $value = 1): ChronosInterface
{
trigger_error('2.4 - addYear() is deprecated. Use addYears() instead.', E_USER_DEPRECATED);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's us a similar format to cake core. Since 2.4.0, ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good.

@othercorey othercorey added this to the 2.x milestone Nov 8, 2022
@othercorey othercorey merged commit 34b9892 into 2.next Nov 8, 2022
@othercorey othercorey deleted the deprecate-singular branch November 8, 2022 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants