@@ -41,22 +41,22 @@ public static function getTextContent(DOMXPath $xpath, string $query, string $na
4141 if ($ item2 === null ) {
4242 self ::fail ('Unexpected null return requesting item ' );
4343 } elseif ($ namedItem !== '' ) {
44- if (!property_exists ('attributes ' , $ item2 )) {
44+ if (!property_exists ($ item2 , 'attributes ' )) {
4545 self ::fail ('Unexpected incorrect object ' );
4646 } else {
4747 $ item3 = $ item2 ->attributes ->getNamedItem ($ namedItem );
4848 if ($ item3 === null ) {
4949 self ::fail ('Unexpected null return requesting namedItem ' );
5050 } else {
51- if (!property_exists ('textContent ' , $ item3 )) {
51+ if (!property_exists ($ item3 , 'textContent ' )) {
5252 self ::fail ('Unexpected incorrect object ' );
5353 } else {
5454 $ returnVal = $ item3 ->textContent ;
5555 }
5656 }
5757 }
5858 } else {
59- if (!property_exists ('textContent ' , $ item2 )) {
59+ if (!property_exists ($ item2 , 'textContent ' )) {
6060 self ::fail ('Unexpected incorrect object ' );
6161 } else {
6262 $ returnVal = $ item2 ->textContent ;
@@ -78,7 +78,7 @@ public static function getNamedItem(DOMXPath $xpath, string $query, string $name
7878 $ item2 = $ item ->item ($ itemNumber );
7979 if ($ item2 === null ) {
8080 self ::fail ('Unexpected null return requesting item ' );
81- } elseif (!property_exists ('attributes ' , $ item2 )) {
81+ } elseif (!property_exists ($ item2 , 'attributes ' )) {
8282 self ::fail ('Unexpected incorrect object ' );
8383 } else {
8484 $ returnValue = $ item2 ->attributes ->getNamedItem ($ namedItem );
0 commit comments