mirror of
https://github.com/danog/psalm-plugin.git
synced 2024-11-30 04:39:05 +01:00
Fixed PHP 8.2 deprecations. Using ${var} string interpolation is deprecated in PHP 8.2
This commit is contained in:
parent
613569397e
commit
6f84c2f2e0
@ -46,7 +46,7 @@ final class PipeArgumentsProvider implements DynamicFunctionStorageProviderInter
|
|||||||
$pipe_storage->params = [
|
$pipe_storage->params = [
|
||||||
...array_map(
|
...array_map(
|
||||||
static fn(TClosure $callable, int $offset) => self::createParam(
|
static fn(TClosure $callable, int $offset) => self::createParam(
|
||||||
"fn_${offset}",
|
"fn_{$offset}",
|
||||||
new Union([$callable]),
|
new Union([$callable]),
|
||||||
),
|
),
|
||||||
$pipe_callables,
|
$pipe_callables,
|
||||||
@ -75,7 +75,7 @@ final class PipeArgumentsProvider implements DynamicFunctionStorageProviderInter
|
|||||||
DynamicTemplateProvider $template_provider,
|
DynamicTemplateProvider $template_provider,
|
||||||
int $offset
|
int $offset
|
||||||
): TTemplateParam {
|
): TTemplateParam {
|
||||||
return $template_provider->createTemplate("T${offset}");
|
return $template_provider->createTemplate("T{$offset}");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function createABClosure(
|
private static function createABClosure(
|
||||||
|
Loading…
Reference in New Issue
Block a user