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

[Taxation] Scalar types in Taxes #8451

Merged
merged 3 commits into from
Aug 25, 2017
Merged

Conversation

Zales0123
Copy link
Member

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

@Zales0123 Zales0123 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 24, 2017
@pamil pamil mentioned this pull request Aug 24, 2017
30 tasks
@Zales0123 Zales0123 requested a review from pamil August 25, 2017 09:20
@@ -3,16 +3,16 @@
<div class="divider"> / </div>
{% if product.mainTaxon is not null %}
{% set taxon = product.mainTaxon %}
{% set parents = taxon.parents|reverse %}
{#{% set parents = taxon.parents|reverse %}#}
Copy link
Contributor

Choose a reason for hiding this comment

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

#8456 fixes it.

*/
public function setName($name);
public function setName(string $name): void;
Copy link
Contributor

Choose a reason for hiding this comment

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

?string


* The following methods does not longer have a default null argument and requires one to be explicitly passed:

* `TaxRateInterface::setTranslatable`
Copy link
Contributor

Choose a reason for hiding this comment

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

Also TaxRateInterface::setCategory

@@ -53,7 +53,7 @@ public function getAmount(): float;
public function getAmountAsPercentage(): float;

/**
* @param float|null $amount
* @param float $amount
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not be changed.

@@ -175,9 +175,9 @@ public function setCalculator(?string $calculator): void
}

/**
* @return string|null
* @return string
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not be changed.

@pamil pamil merged commit a912c72 into Sylius:master Aug 25, 2017
@pamil
Copy link
Contributor

pamil commented Aug 25, 2017

Thank you Zaleś! 🥇

@Zales0123 Zales0123 deleted the scalar-types-taxation branch August 25, 2017 13:58
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