From 67b69188aa0f5e363f56c53993941c9df1f43914 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 4 Jul 2026 08:16:05 +0200 Subject: [PATCH] Fix CS --- .../Php/ExplodeFunctionDynamicReturnTypeExtension.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php b/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php index 1fb9fc3620..760499ee4a 100644 --- a/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php +++ b/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php @@ -91,12 +91,18 @@ public function getTypeFromFunctionCall( $limitType = isset($args[2]) ? $scope->getType($args[2]->value) : null; - if ($this->isDelimiterGuaranteedPresent($args, $scope) && ($limitType === null || IntegerRangeType::fromInterval(2, null)->isSuperTypeOf($limitType)->yes())) { + if ( + $this->isDelimiterGuaranteedPresent($args, $scope) + && ($limitType === null || IntegerRangeType::fromInterval(2, null)->isSuperTypeOf($limitType)->yes()) + ) { $returnType = $this->createGuaranteedSplitType($returnValueType, $limitType); } else { $returnType = new IntersectionType([new ArrayType(IntegerRangeType::createAllGreaterThanOrEqualTo(0), $returnValueType), new AccessoryArrayListType()]); - if ($limitType === null || IntegerRangeType::fromInterval(0, null)->isSuperTypeOf($limitType)->yes()) { + if ( + $limitType === null + || IntegerRangeType::fromInterval(0, null)->isSuperTypeOf($limitType)->yes() + ) { $returnType = TypeCombinator::intersect($returnType, new NonEmptyArrayType()); } }