-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ConstantLooseComparisonRule - respect treatPhpDocTypesAsCertain
- Loading branch information
1 parent
40400ae
commit 72472dd
Showing
4 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
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
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
19 changes: 19 additions & 0 deletions
19
tests/PHPStan/Rules/Comparison/data/loose-comparison-treat-phpdoc-types.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,19 @@ | ||
<?php | ||
|
||
namespace LooseComparisonTreatPhpDocTypes; | ||
|
||
class Foo | ||
{ | ||
|
||
/** | ||
* @param 3 $i | ||
* @return void | ||
*/ | ||
public function doFoo(int $i): void | ||
{ | ||
if ($i == 3) { | ||
|
||
} | ||
} | ||
|
||
} |