Skip to content

Commit 2664982

Browse files
committed
Fix TypeError on type hinting DOMNodeList
1 parent 9dc57ff commit 2664982

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ConvertKit_API.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,15 +637,15 @@ public function get_resource(string $url)
637637
* Converts any relative URls to absolute, fully qualified HTTP(s) URLs for the given
638638
* DOM Elements.
639639
*
640-
* @param DOMNodeList $elements Elements.
641-
* @param string $attribute HTML Attribute.
642-
* @param string $url Absolute URL to prepend to relative URLs.
640+
* @param \DOMNodeList $elements Elements.
641+
* @param string $attribute HTML Attribute.
642+
* @param string $url Absolute URL to prepend to relative URLs.
643643
*
644644
* @since 1.0.0
645645
*
646646
* @return void
647647
*/
648-
private function convert_relative_to_absolute_urls(DOMNodeList $elements, string $attribute, string $url)
648+
private function convert_relative_to_absolute_urls(\DOMNodeList $elements, string $attribute, string $url)
649649
{
650650
// Anchor hrefs.
651651
foreach ($elements as $element) {

0 commit comments

Comments
 (0)