Skip to content

Commit

Permalink
Add better docs to TypeComparisonResult
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug authored and weirdan committed Jan 2, 2022
1 parent ae00630 commit 1e115da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Psalm/Internal/Type/Comparator/TypeComparisonResult.php
Expand Up @@ -7,7 +7,12 @@

class TypeComparisonResult
{
/** @var ?bool */
/**
* This is used to trigger `InvalidScalarArgument` in situations where we know PHP
* will try to coerce one scalar type to another.
*
* @var ?bool
*/
public $scalar_type_match_found;

/** @var ?bool */
Expand Down

0 comments on commit 1e115da

Please sign in to comment.