From 90154af3c9f666aff52e9147573b061cf9ae7b81 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 24 Jul 2023 12:39:34 +0200 Subject: [PATCH] Increase minimum version --- composer.json | 2 +- .../Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 3dd9d086774..60eaaea7eb5 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0", + "php": "~8.1.17 || ~8.2.4", "ext-SimpleXML": "*", "ext-ctype": "*", "ext-dom": "*", diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php index b90ffbc387d..fa05aef2178 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ConcatAnalyzer.php @@ -179,9 +179,6 @@ public static function analyze( } if ($literal_concat) { - // Bypass opcache bug: https://github.com/php/php-src/issues/10635 - (function (int $_): void { - })($combinations); if (count($result_type_parts) === 0) { throw new AssertionError("The number of parts cannot be 0!"); }