Skip to content

Fixes incorrect types reported by parse_url#2918

Merged
ondrejmirtes merged 1 commit into
phpstan:1.11.xfrom
ChrisBrenton:bug-4754
May 30, 2024
Merged

Fixes incorrect types reported by parse_url#2918
ondrejmirtes merged 1 commit into
phpstan:1.11.xfrom
ChrisBrenton:bug-4754

Conversation

@ChrisBrenton

Copy link
Copy Markdown
Contributor

Fixes parse_url return type when $component is -1 returning more types than were valid. Adds missing types when $component is not a constant value.

Fixes: phpstan/phpstan#4754

@ChrisBrenton
ChrisBrenton force-pushed the bug-4754 branch 2 times, most recently from 8490363 to b03214e Compare February 15, 2024 18:03
@ondrejmirtes
ondrejmirtes changed the base branch from 1.10.x to 1.11.x May 30, 2024 13:10
…s than were valid. Adds missing types when $component is not a constant value.
@ondrejmirtes
ondrejmirtes merged commit 1ebcae0 into phpstan:1.11.x May 30, 2024
@ondrejmirtes

Copy link
Copy Markdown
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parse_url can return an int or string

2 participants