From 4c656f0a2b2e577a4910047198de39199b0497bb Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 21 Oct 2023 20:50:08 +0200 Subject: [PATCH] Revert --- .../Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php index 05bfb3fc3..b90ffbc38 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php @@ -180,7 +180,7 @@ class ConcatAnalyzer if ($literal_concat) { // Bypass opcache bug: https://github.com/php/php-src/issues/10635 - (static function (int $_): void { + (function (int $_): void { })($combinations); if (count($result_type_parts) === 0) { throw new AssertionError("The number of parts cannot be 0!");