-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypedPropertyFromAssignsRector] Handle parse_url() native function w…
…ith second arg on TypedPropertyFromAssignsRector
- Loading branch information
1 parent
1c9f232
commit 95a5f20
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...erty/TypedPropertyFromAssignsRector/FixtureComplexTypes/parse_url_with_second_arg.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,31 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector\FixtureComplexTypes; | ||
|
||
final class ParseUrlWithSecondArg | ||
{ | ||
private $host = null; | ||
|
||
public function _cosntructor(string $url) | ||
{ | ||
$this->host = parse_url($url, \PHP_URL_HOST); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector\FixtureComplexTypes; | ||
|
||
final class ParseUrlWithSecondArg | ||
{ | ||
private $host = null; | ||
|
||
public function _cosntructor(string $url) | ||
{ | ||
$this->host = parse_url($url, \PHP_URL_HOST); | ||
} | ||
} | ||
|
||
?> |
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