-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHPStanStaticTypeMapper] Remove BoolUnionTypeAnalyzer on UnionTypeMa…
…pper (#5141)
- Loading branch information
1 parent
c07a44f
commit e83c7ef
Showing
3 changed files
with
23 additions
and
30 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
packages/PHPStanStaticTypeMapper/TypeAnalyzer/BoolUnionTypeAnalyzer.php
This file was deleted.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
...laration/Rector/Class_/ReturnTypeFromStrictTernaryRector/Fixture/get_truthy_check.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,21 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Class_\ReturnTypeFromStrictTernaryRector\Fixture; | ||
|
||
function getThruthyCheck($number, $number2) | ||
{ | ||
return $number ? false : (bool) $number2; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Class_\ReturnTypeFromStrictTernaryRector\Fixture; | ||
|
||
function getThruthyCheck($number, $number2): bool | ||
{ | ||
return $number ? false : (bool) $number2; | ||
} | ||
|
||
?> |