CombineHostPortLdapUriRector

Combine separated host and port on ldap_connect() args

-ldap_connect('ldap://ldap.example.com', 389);
+ldap_connect('ldap://ldap.example.com:389');

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php83\Rector\FuncCall\CombineHostPortLdapUriRector;

return RectorConfig::configure()
    ->withRules([
        CombineHostPortLdapUriRector::class,
    ]);
SETS:  PHP 8.3