We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_redirect
loadLayout
<?php declare(strict_types=1); namespace Vendor\Module\Model; class MyModel { /** * @var string */ private $renderLayout; /** * @var string */ private $_redirect; /** * @return void */ public function test() { if ($this->renderLayout === null) { $a = 1; } if ($this->_redirect === null) { $b = 2; } } }
phpcs
Magento2.Legacy.ObsoleteResponse
FILE: /Model/MyModel.php ----------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------------------------- 24 | WARNING | renderLayout method is deprecated. Please use \Magento\Framework\Controller\ResultInterface::renderResult instead. 27 | WARNING | _redirect method is deprecated. Please use \Magento\Backend\Model\View\Result\Redirect::render instead. -----------------------------------------------------------------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
Hi @DmitryFurs. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
@magento I am working on this
Sorry, something went wrong.
No branches or pull requests
Preconditions
_redirect
orloadLayout
Steps to reproduce
phpcs
Expected result
Magento2.Legacy.ObsoleteResponse
triggeredActual result
The text was updated successfully, but these errors were encountered: