Skip to content

Commit 0fbf0ee

Browse files
committed
FileCacheStorage - reference cache key in a comment
1 parent 5846317 commit 0fbf0ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Cache/FileCacheStorage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public function save(string $key, string $variableKey, $data): void
8484
FileWriter::write(
8585
$tmpPath,
8686
sprintf(
87-
"<?php declare(strict_types = 1);\n\nreturn %s;",
87+
"<?php declare(strict_types = 1);\n\n%s\nreturn %s;",
88+
sprintf('// %s', $key),
8889
$exported,
8990
),
9091
);

0 commit comments

Comments
 (0)