Skip to content

Commit

Permalink
magento2/issues/12087: Fix static test.
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Kilo committed Jul 7, 2020
1 parent cb0b3d4 commit 1f84319
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/code/Magento/Widget/Model/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function getWidgetByClassType($type)
*/
public function getConfigAsXml($type)
{
// phpstan:ignore
return $this->getXmlElementByType($type);
}

Expand Down Expand Up @@ -463,7 +464,7 @@ protected function sortParameters($firstElement, $secondElement)
/**
* Encode reserved chars
*
* @param $string
* @param string $string
* @return string|string[]
*/
private function encodeReservedChars($string)
Expand All @@ -483,7 +484,7 @@ private function encodeReservedChars($string)
/**
* Decode reserved chars
*
* @param $string
* @param string $string
* @return array
*/
public function decodeReservedChars($string)
Expand All @@ -503,8 +504,8 @@ public function decodeReservedChars($string)
/**
* Is text type Widget parameter
*
* @param $widget
* @param $name
* @param \Magento\Framework\DataObject $widget
* @param string $name
* @return bool
*/
private function isTextType($widget, $name)
Expand Down

0 comments on commit 1f84319

Please sign in to comment.