Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Add Support for Symfony 6#736

Merged
GSadee merged 2 commits into
Sylius:1.6from
TheMilek:SYL-2534
Jan 12, 2023
Merged

Add Support for Symfony 6#736
GSadee merged 2 commits into
Sylius:1.6from
TheMilek:SYL-2534

Conversation

@TheMilek
Copy link
Copy Markdown
Member

@TheMilek TheMilek commented Dec 19, 2022

continuation of / to potential merge after merging #734

@TheMilek TheMilek requested a review from a team as a code owner December 19, 2022 14:02
@TheMilek TheMilek force-pushed the SYL-2534 branch 2 times, most recently from 9f5e2f3 to 58aa0a9 Compare December 19, 2022 14:20
Comment thread composer.json Outdated
Comment thread .github/workflows/build.yml Outdated
php: [8.0, 8.1]
node: [10.x]
mysql: [5.7, 8.0]
symfony: [^4.4, ~5.2.0, ~5.3.0]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think I told you about it already that it is IMO a good idea to drop SF 4.4 in a separate PR. But if you want to keep it as it is, let's add it at least to the PR title to have this info in the generated changelog on next release 😀

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This PR is continuation of #734
I'm planning to make it in the order the above one this one after rebase and as a last one to merge will be this support to SF6 as it's based on the Sylius 1.12 support, so the changelog will be informative 💃

Comment thread tests/Controller/AddressBook/CreateAddressApiTest.php
Comment thread tests/Controller/AddressBook/CreateAddressApiTest.php
Comment on lines +114 to +118
if (Kernel::VERSION_ID < 60000) {
$this->assertResponse($response, 'address_book/SF5/validation_create_address_book_with_wrong_country_response', Response::HTTP_BAD_REQUEST);
} else {
$this->assertResponse($response, 'address_book/SF6/validation_create_address_book_with_wrong_country_response', Response::HTTP_BAD_REQUEST);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To avoid that, we could probably define the custom validation message

@GSadee GSadee merged commit 95043cc into Sylius:1.6 Jan 12, 2023
@GSadee
Copy link
Copy Markdown
Member

GSadee commented Jan 12, 2023

Thanks, Kamil! 🎉

@TheMilek TheMilek deleted the SYL-2534 branch January 12, 2023 12:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants