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
See https://getrector.com/demo/a0c60c4c-6471-4028-bf9b-f1f1660ccdba
<?php final class DemoFile { private $host = null; public function _cosntructor(string $url) { $this->host = parse_url($url, \PHP_URL_HOST); } }
TypedPropertyFromAssignsRector
see https://www.php.net/manual/en/function.parse-url.php When the component parameter is passed, parse_url returns string|null (or int|null for the specific \PHP_URL_PORT component)
parse_url
string|null
int|null
\PHP_URL_PORT
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/a0c60c4c-6471-4028-bf9b-f1f1660ccdba
Responsible rules
TypedPropertyFromAssignsRector
Expected Behavior
see https://www.php.net/manual/en/function.parse-url.php
When the component parameter is passed,
parse_url
returnsstring|null
(orint|null
for the specific\PHP_URL_PORT
component)The text was updated successfully, but these errors were encountered: