Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Aug 30, 2024
1 parent 3075f91 commit 4a520ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EPPElementHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ public static function createEPPResultElement(Document $document,string $code,EP
* @param mixed ...$content
* @return EPPMessageElement
*/
public static function createEPPMessageElement(Document $document,?string $lang=null,... $content): EPPMessageElement{
public static function createEPPMessageElement(Document $document,?string $lang=null,...$content): EPPMessageElement{
/**@var EPPMessageElement $messageElement*/
$messageElement = $document->createElementNS(EPPNamespaces::EPP_1_0,'msg');
if($lang){
$messageElement->setAttribute('lang',$lang);
}
if(is_string($content[0] ?? null)){
$messageElement->textContent = $content;
if(is_string(array_values($content)[0] ?? null)){
$messageElement->textContent = array_values($content)[0];
}else{
foreach($content AS $node){
$messageElement->appendChild($node);
Expand Down

0 comments on commit 4a520ae

Please sign in to comment.