-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix some deprecations #3732
Fix some deprecations #3732
Conversation
573754d
to
5b847bb
Compare
👍 Thank you Ben! |
); | ||
} else { | ||
if (!isset($value['class'])) { | ||
$value['class'] = 'Sylius\Bundle\TaxonomyBundle\Form\DataTransformer\TaxonSelectionToCollectionTransformer'; |
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.
TaxonSelectionToCollectionTransformer::class
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.
yeah this is just re-indenting the code.
i thought to fix these class references in a separate PR, and fix all of them at the same time.
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.
@bendavies Good plan, will be easier to review and merge. 👍
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.
are the test failures because of these changes? |
@pjedrzejewski any idea? |
@@ -127,7 +127,7 @@ public function resolve(CartItemInterface $item, $data) | |||
|
|||
// We use forms to easily set the quantity and pick variant but you can do here whatever is required to create the item. | |||
$form = $this->formFactory->create('sylius_cart_item', $item, array('product' => $product)); | |||
$form->submit($data); | |||
$form->handleRequest($data); |
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.
Are you sure $data
is an instance of Request
?
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.
yes, have a look at the first line of this method.
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.
In that case we can rename it to $request
, as many would expect some array with... data :)
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.
very true, but i'd rather keep this PRs changes specific to fixing deprecations.
that can be done in another PR
@bendavies Logging errors on Travis is temporarily not working (see #3727), have you tried to run these failing scenarios locally by |
@pamil thanks i'll take a look |
this isn't working at the moment because |
5b847bb
to
1c52cad
Compare
build is fixed. |
a4347fc
to
13f2d3e
Compare
Fixing more deprecations. |
3910cdd
to
76e455d
Compare
That's quite a few fixed. |
@bendavies good job! Could you rebase? |
7830416
to
2250c75
Compare
@michalmarcinkowski done |
2250c75
to
7b1b3e1
Compare
looks like there is a change in the handling of |
7b1b3e1
to
97486f1
Compare
I've reverted the form handling changes, as this is getting a heavy refactor in #3762 anyway. |
@michalmarcinkowski build passes! |
Thank you very much Ben! 👍 |
As per the title!