Skip to content

Commit 6f30fba

Browse files
committed
MAGETWO-95212: Dynamic block call to getCurrentUrl method is returning ajax request value
- Fixed new static test error-
1 parent 9df14b0 commit 6f30fba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/CatalogWidget/Block/Product/ProductsList.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ protected function _construct()
163163
* Get key pieces for caching block content
164164
*
165165
* @return array
166+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
166167
*/
167168
public function getCacheKeyInfo()
168169
{
@@ -240,6 +241,7 @@ protected function _beforeToHtml()
240241
* Prepare and return product collection
241242
*
242243
* @return \Magento\Catalog\Model\ResourceModel\Product\Collection
244+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
243245
*/
244246
public function createCollection()
245247
{

0 commit comments

Comments
 (0)