Skip to content

Commit

Permalink
FileCacheStorage - reference cache key in a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Aug 24, 2023
1 parent 5846317 commit 0fbf0ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Cache/FileCacheStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public function save(string $key, string $variableKey, $data): void
FileWriter::write(
$tmpPath,
sprintf(
"<?php declare(strict_types = 1);\n\nreturn %s;",
"<?php declare(strict_types = 1);\n\n%s\nreturn %s;",
sprintf('// %s', $key),
$exported,
),
);
Expand Down

0 comments on commit 0fbf0ee

Please sign in to comment.