-
Notifications
You must be signed in to change notification settings - Fork 71
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
Improve customization of RefundType #323
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GSadee
force-pushed
the
refactor-refund-type-enum
branch
from
July 6, 2021 09:40
0861bb8
to
e5e9b15
Compare
GSadee
changed the title
[WIP] Improve customization of RefundType
Improve customization of RefundType
Jul 6, 2021
AdamKasp
approved these changes
Jul 6, 2021
@@ -30,31 +32,36 @@ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $pla | |||
return 'VARCHAR(256)'; | |||
} | |||
|
|||
public function convertToPHPValue($value, AbstractPlatform $platform): RefundType | |||
public function convertToPHPValue($value, AbstractPlatform $platform): RefundTypeInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
public function convertToPHPValue($value, AbstractPlatform $platform): RefundTypeInterface | |
public function convertToPhpValue($value, AbstractPlatform $platform): RefundTypeInterface |
this way is more camelCase :)
like getId
instead getID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot change the name of this method, it is defined in class below
arti0090
approved these changes
Jul 6, 2021
SirDomin
approved these changes
Jul 7, 2021
Thank you, Grzegorz! 🥇 |
AdamKasp
added a commit
to Sylius/Sylius
that referenced
this pull request
Jul 7, 2021
…efund? (GSadee) This PR was merged into the 1.9 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.9 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | fixes Sylius/RefundPlugin#279 and waits for Sylius/RefundPlugin#323 | License | MIT ![screencapture-localhost-63342-Sylius-docs-build-cookbook-payments-custom-type-of-refund-html-2021-07-06-11_37_48](https://user-images.githubusercontent.com/6140884/124579173-2b968700-de4f-11eb-83f0-b6332b6ae760.png) Commits ------- 85b43d3 [Documentation][Cookbook] How to add another type of refund?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #279
Replaces #311