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

[Order] Use typehints introduced by PHP7+ #8473

Merged
merged 4 commits into from
Aug 30, 2017

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Aug 28, 2017

Q A
Bug fix? no
New feature? no
BC breaks? yes
Related tickets part of #8425
License MIT

@pamil pamil added BC Break PRs introducing BC breaks (do not even try to merge). Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). PHP 7.1 labels Aug 28, 2017
@pamil pamil added this to the v1.0.0 milestone Aug 28, 2017
@pamil pamil self-assigned this Aug 28, 2017
@pamil pamil requested a review from Zales0123 August 28, 2017 14:53
@pamil pamil mentioned this pull request Aug 28, 2017
30 tasks
@pamil pamil force-pushed the scalar-types/order branch 4 times, most recently from 2eb30dc to 1ae9875 Compare August 29, 2017 10:56

/**
* @param AdjustableInterface|null $adjustable
*/
public function setAdjustable(AdjustableInterface $adjustable = null);
public function setAdjustable(?AdjustableInterface $adjustable): void;
Copy link
Member

Choose a reason for hiding this comment

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

We should mention this in UPGRADE.md file

*/
public function setOrder(OrderInterface $order = null);
public function setOrder(?OrderInterface $order): void;
Copy link
Member

Choose a reason for hiding this comment

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

And this.

*/
public function setCheckoutCompletedAt(\DateTimeInterface $checkoutCompletedAt = null);
public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void;
Copy link
Member

Choose a reason for hiding this comment

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

And this and everything else where we remove the default value from public method.

@Zales0123 Zales0123 merged commit 303e386 into Sylius:master Aug 30, 2017
@Zales0123
Copy link
Member

Thank you Kamil! 🥇

@pamil pamil deleted the scalar-types/order branch August 30, 2017 10:41
@pamil
Copy link
Contributor Author

pamil commented Aug 30, 2017

Thank you for this medal, it means so much for me!

bendavies pushed a commit to bendavies/Sylius that referenced this pull request Sep 7, 2017
[Order] Use typehints introduced by PHP7+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break PRs introducing BC breaks (do not even try to merge). Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants