-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ShortenedObjectType not resolving to correct class reflection (#3397
- Loading branch information
1 parent
48e431b
commit 6a8ebb9
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...tests/Php71/Rector/FuncCall/RemoveExtraParametersRector/Fixture/skip_phpstan_phar.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,16 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php71\Rector\FuncCall\RemoveExtraParametersRector\Fixture; | ||
|
||
use Rector\Tests\Php71\Rector\FuncCall\RemoveExtraParametersRector\Source\Stan; | ||
|
||
final class SkipPHPStanPhar | ||
{ | ||
public function run() | ||
{ | ||
$stan = new Stan(); | ||
$stan->foo(1, 2); | ||
|
||
Stan::bar(1, 2); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
rules-tests/Php71/Rector/FuncCall/RemoveExtraParametersRector/Source/phpstan.phar/Stan.php
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,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\Php71\Rector\FuncCall\RemoveExtraParametersRector\Source; | ||
|
||
final class Stan | ||
{ | ||
public function foo(): void | ||
{ | ||
} | ||
|
||
public static function bar(): void | ||
{ | ||
} | ||
} |
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