File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function __construct(string $name)
14
14
$ name ,
15
15
function (string $ value ): string {
16
16
$ pattern = <<<'PHP'
17
- (function () {
17
+ (function () use ($input) {
18
18
$resource = \tmpfile();
19
19
if ($resource === false) {
20
20
throw new \RuntimeException('Could not open temporary file.');
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ public function __construct(string $name)
14
14
$ name ,
15
15
function (string $ value ): string {
16
16
$ pattern = <<<'PHP'
17
- (function ($data) {
17
+ (function ($data) use ($input) {
18
18
if (!is_string($data)) {
19
19
return null;
20
20
}
21
21
$stream = fopen('php://temp', 'r+');
22
22
fwrite($stream, $data);
23
23
fseek($stream, 0, SEEK_SET);
24
24
return $stream;
25
- })(%s);
25
+ })(%s)
26
26
PHP;
27
27
28
28
return sprintf ($ pattern , $ value );
You can’t perform that action at this time.
0 commit comments