diff --git a/app/code/Magento/Widget/Model/Widget.php b/app/code/Magento/Widget/Model/Widget.php index c01d8b226197d..49450ff6e017e 100644 --- a/app/code/Magento/Widget/Model/Widget.php +++ b/app/code/Magento/Widget/Model/Widget.php @@ -131,6 +131,7 @@ public function getWidgetByClassType($type) */ public function getConfigAsXml($type) { + // phpstan:ignore return $this->getXmlElementByType($type); } @@ -463,7 +464,7 @@ protected function sortParameters($firstElement, $secondElement) /** * Encode reserved chars * - * @param $string + * @param string $string * @return string|string[] */ private function encodeReservedChars($string) @@ -483,7 +484,7 @@ private function encodeReservedChars($string) /** * Decode reserved chars * - * @param $string + * @param string $string * @return array */ public function decodeReservedChars($string) @@ -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)