From f1a9b73a78d58e92cb0d2d72d3365940265a85b9 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Sun, 23 Feb 2020 18:24:43 -0500 Subject: [PATCH] Fix message --- .../Analyzer/Statements/Expression/BinaryOpAnalyzer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOpAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOpAnalyzer.php index 8e843fc64..e961e56a6 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOpAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOpAnalyzer.php @@ -949,7 +949,7 @@ class BinaryOpAnalyzer ) { if (IssueBuffer::accepts( new ImpureMethodCall( - 'Cannot call an mutation-free method ' + 'Cannot call a possibly-mutating method ' . $atomic_type->value . '::__toString from a pure context', new CodeLocation($statements_analyzer, $stmt) ), @@ -979,7 +979,7 @@ class BinaryOpAnalyzer ) { if (IssueBuffer::accepts( new ImpureMethodCall( - 'Cannot call an mutation-free method ' + 'Cannot call a possibly-mutating method ' . $atomic_type->value . '::__toString from a pure context', new CodeLocation($statements_analyzer, $stmt) ),