Skip to content

Partial docs fixes in Newsletter module #20848

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

Merged
merged 3 commits into from Jun 8, 2019
Merged

Partial docs fixes in Newsletter module #20848

merged 3 commits into from Jun 8, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jan 31, 2019

Description

Small PHPDocs fixes in Newsletter
strict_type fixes in Newsletter module

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

- PHPDocs
- strict_type
@magento-engcom-team
Copy link
Contributor

Hi @SikailoISM. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@magento-engcom-team magento-engcom-team added Component: Newsletter Release Line: 2.3 Partner: ISM eCompany Pull Request is created by partner ISM eCompany partners-contribution Pull Request is created by Magento Partner labels Jan 31, 2019
@orlangur orlangur self-assigned this Jan 31, 2019
@@ -110,7 +111,7 @@ public function execute()
$this->messageManager->addError(__('Something went wrong while saving your subscription.'));
}
}
$this->_redirect('customer/account/');
return $this->_redirect('customer/account/');
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this is needed?

Copy link
Author

Choose a reason for hiding this comment

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

I think this is logical due to lib/internal/Magento/Framework/App/ActionInterface.php:30

@orlangur
Copy link
Contributor

@sidolov which sentence are you referring to? Didn't find appropriate searching by "type".

Also, these are controller actions and unlikely to be extended.

@sidolov
Copy link
Contributor

sidolov commented Apr 29, 2019

Hi @orlangur , defining the strict return type is method signature changes actually, so, we can't make such changes for public methods according to our guides.

@orlangur
Copy link
Contributor

@sidolov I don't see which part of the doc you're referring to. Closest one:

Some changes are detected and documented by an automated tool. These backward incompatible changes do not need manual documentation:
Modifying a method signature

For execute method I don't see why we need it as it is unlikely to be extended.

@p-bystritsky
Copy link
Contributor

@sidolov please review.

Copy link
Contributor

@orlangur orlangur left a comment

Choose a reason for hiding this comment

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

@SikailoISM please squash changes into a single commit so that we have perfectly clean history 😉

@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-4676 has been created to process this Pull Request

Copy link
Contributor

@orlangur orlangur left a comment

Choose a reason for hiding this comment

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

Please squash changes into a single commit so that we have perfectly clean history 😉

…hpdocs-stricttypes-fixes

# Conflicts:
#	app/code/Magento/Newsletter/Controller/Subscriber/Confirm.php
@p-bystritsky
Copy link
Contributor

@orlangur updated.

@magento-engcom-team
Copy link
Contributor

Hi @orlangur, thank you for the review.
ENGCOM-4676 has been created to process this Pull Request

@soleksii
Copy link

soleksii commented Jun 7, 2019

✔️ QA Passed

@m2-assistant
Copy link

m2-assistant bot commented Jun 8, 2019

Hi @SikailoISM, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

magento-engcom-team pushed a commit to okorshenko/magento2 that referenced this pull request Jun 8, 2019
@magento-engcom-team magento-engcom-team added this to the Release: 2.3.3 milestone Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Component: Newsletter Partner: ISM eCompany Pull Request is created by partner ISM eCompany partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants