From 6f84c2f2e074b6af9f9c022485af4f670e4d70e0 Mon Sep 17 00:00:00 2001 From: Dragos Protung Date: Tue, 6 Dec 2022 11:38:09 +0100 Subject: [PATCH] Fixed PHP 8.2 deprecations. Using ${var} string interpolation is deprecated in PHP 8.2 --- src/EventHandler/Fun/Pipe/PipeArgumentsProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventHandler/Fun/Pipe/PipeArgumentsProvider.php b/src/EventHandler/Fun/Pipe/PipeArgumentsProvider.php index 63d9d3b..2818575 100644 --- a/src/EventHandler/Fun/Pipe/PipeArgumentsProvider.php +++ b/src/EventHandler/Fun/Pipe/PipeArgumentsProvider.php @@ -46,7 +46,7 @@ final class PipeArgumentsProvider implements DynamicFunctionStorageProviderInter $pipe_storage->params = [ ...array_map( static fn(TClosure $callable, int $offset) => self::createParam( - "fn_${offset}", + "fn_{$offset}", new Union([$callable]), ), $pipe_callables, @@ -75,7 +75,7 @@ final class PipeArgumentsProvider implements DynamicFunctionStorageProviderInter DynamicTemplateProvider $template_provider, int $offset ): TTemplateParam { - return $template_provider->createTemplate("T${offset}"); + return $template_provider->createTemplate("T{$offset}"); } private static function createABClosure(