diff --git a/src/Psalm/Internal/Type/Comparator/TypeComparisonResult.php b/src/Psalm/Internal/Type/Comparator/TypeComparisonResult.php index 5fbe29af824..bdfafc95626 100644 --- a/src/Psalm/Internal/Type/Comparator/TypeComparisonResult.php +++ b/src/Psalm/Internal/Type/Comparator/TypeComparisonResult.php @@ -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 */