Skip to content

get_headers $associative changed type on php8 #8125

@mvhirsch

Description

@mvhirsch

Feature Request

Thank you very much for making rector. It simplifies my work ❤️

I'm currently upgrading a legacy project to php8. I stumbled upon a use of get_headers, which rector isn't aware of it's changes parameter $associative.

https://www.php.net/manual/en/function.get-headers.php#refsect1-function.get-headers-changelog
https://getrector.com/demo/06beb867-accf-4a43-a749-442098f0938b

Diff

-get_headers($url, 1);
+get_headers($url, true);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions