Skip to content

Commit c485c1f

Browse files
committed
Added Strict Type Declaration & return type
1 parent 75d8a6c commit c485c1f

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/View/Model/Layout

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/View/Model/Layout/Merge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,9 @@ protected function _loadXmlString($xmlString)
568568
* Return object representation of XML string, or false, if XML was invalid
569569
*
570570
* @param string $xmlString
571-
* @return \SimpleXMLElement
571+
* @return \SimpleXMLElement|false
572572
*/
573-
protected function _safeLoadXmlString($xmlString)
573+
protected function _safeLoadXmlString(string $xmlString): \SimpleXMLElement|false
574574
{
575575
return simplexml_load_string(
576576
$xmlString,

0 commit comments

Comments
 (0)