Merge pull request #11 from dragosprotung/main

Fixed PHP 8.2 deprecations
This commit is contained in:
Toon Verwerft 2022-12-06 11:44:56 +01:00 committed by GitHub
commit 068bc7a8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(