We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: parse_str(): Passing null to parameter No1 ($string) of type string is deprecated
File: .../vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Parser.php:53
public function parse($refererUrl, $pageUrl = null) { $refererParts = static::parseUrl($refererUrl); if (!$refererParts) { return Referer::createInvalid(); } $pageUrlParts = static::parseUrl($pageUrl); if ($pageUrlParts && $pageUrlParts['host'] === $refererParts['host'] || in_array($refererParts['host'], $this->internalHosts)) { return Referer::createInternal(); } $referer = $this->lookup($refererParts['host'], $refererParts['path']); if (!$referer) { return Referer::createUnknown(); } $searchTerm = null; if ($referer['parameters']) { parse_str($refererParts['query'], $queryParts); ^^^ foreach ($referer['parameters'] as $parameter) { $searchTerm = isset($queryParts[$parameter]) ? $queryParts[$parameter] : $searchTerm; } } return Referer::createKnown($referer['medium'], $referer['source'], $searchTerm); }
The text was updated successfully, but these errors were encountered:
Can somebody update source code or approve PR if I create it?
Sorry, something went wrong.
No branches or pull requests
Warning:
parse_str(): Passing null to parameter No1 ($string) of type string is deprecated
File:
.../vendor/snowplow/referer-parser/php/src/Snowplow/RefererParser/Parser.php:53
The text was updated successfully, but these errors were encountered: