Skip to content

CombineHostPortLdapUriRector doesn't handle concatenated URI parameters #8964

@phinor

Description

@phinor

Bug Report

Subject Details
Rector version Rector 1.2.10

The CombineHostPortLdapUriRector rule incorrectly handles concatenated URI parameters

Minimal PHP Code Causing Issue

- $authConnection = ldap_connect ($this->protocol . $this->server, $this->port);
+ $authConnection = ldap_connect ("{$this->protocol . $this->server}:{$this->port}");

Expected Behaviour

- $authConnection = ldap_connect ($this->protocol . $this->server, $this->port);
+ $authConnection = ldap_connect ($this->protocol . $this->server . ":" . $this->port);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions