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 committed Dec 19, 2021
1 parent 10aff07 commit 06dd642
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 06dd642

Please sign in to comment.