-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Conversation
- PHPDocs - strict_type
Hi @SikailoISM. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@@ -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/'); |
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.
Why this is needed?
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 think this is logical due to lib/internal/Magento/Framework/App/ActionInterface.php:30
@sidolov which sentence are you referring to? Didn't find appropriate searching by "type". Also, these are controller actions and unlikely to be extended. |
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. |
@sidolov I don't see which part of the doc you're referring to. Closest one:
For |
@sidolov please review. |
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.
@SikailoISM please squash changes into a single commit so that we have perfectly clean history 😉
Hi @sidolov, thank you for the review. |
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.
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
@orlangur updated. |
Hi @orlangur, thank you for the review. |
✔️ QA Passed |
Hi @SikailoISM, thank you for your contribution! |
Description
Small PHPDocs fixes in Newsletter
strict_type fixes in Newsletter module
Contribution checklist (*)