Skip to content

Commit

Permalink
Merge pull request #119 from craig-mcmahon/fix-type-error-in-see-links
Browse files Browse the repository at this point in the history
Fix type error when using `seeLink`
  • Loading branch information
Naktibalda authored Feb 14, 2024
2 parents a2c6ec5 + 4e4ba90 commit bb857bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Module/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ private function filterNodesByHref(string $url, array $nodes): array
return array_filter(
$nodes,
function (WebDriverElement $e) use ($expectedUrl, $absoluteCurrentUrl): bool {
$elementHref = Uri::mergeUrls($absoluteCurrentUrl, $e->getAttribute('href'));
$elementHref = Uri::mergeUrls($absoluteCurrentUrl, $e->getAttribute('href') ?? '');
return $elementHref === $expectedUrl;
}
);
Expand Down

0 comments on commit bb857bd

Please sign in to comment.