-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php83] Handle dynamic host and port values on CombineHostPortLdapUri…
…Rector (#5401) * [Php83] Handle dynamic host and port values on CombineHostPortLdapUriRector * [Php83] Handle dynamic host and port values on CombineHostPortLdapUriRector * [ci-review] Rector Rectify * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
e044d50
commit fff370b
Showing
3 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
rules-tests/Php83/Rector/FuncCall/CombineHostPortLdapUriRector/Fixture/dynamic_value.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php83\Rector\FuncCall\CombineHostPortLdapUriRector\Fixture; | ||
|
||
class DynamicValue | ||
{ | ||
public function run($host, $port) | ||
{ | ||
$ldapconn = ldap_connect($host, $port); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php83\Rector\FuncCall\CombineHostPortLdapUriRector\Fixture; | ||
|
||
class DynamicValue | ||
{ | ||
public function run($host, $port) | ||
{ | ||
$ldapconn = ldap_connect("{$host}:{$port}"); | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters