Skip to content

Commit

Permalink
Merge pull request #11 from dragosprotung/main
Browse files Browse the repository at this point in the history
Fixed PHP 8.2 deprecations
  • Loading branch information
veewee committed Dec 6, 2022
2 parents 6135693 + 6f84c2f commit 068bc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventHandler/Fun/Pipe/PipeArgumentsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function getFunctionStorage(DynamicFunctionStorageProviderEvent $e
$pipe_storage->params = [
...array_map(
static fn(TClosure $callable, int $offset) => self::createParam(
"fn_${offset}",
"fn_{$offset}",
new Union([$callable]),
),
$pipe_callables,
Expand Down Expand Up @@ -75,7 +75,7 @@ private static function createTemplateFromOffset(
DynamicTemplateProvider $template_provider,
int $offset
): TTemplateParam {
return $template_provider->createTemplate("T${offset}");
return $template_provider->createTemplate("T{$offset}");
}

private static function createABClosure(
Expand Down

0 comments on commit 068bc7a

Please sign in to comment.