Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / Tests / TestFileCreationTrait.php
index 5bb5394be99620a74b5636d99c39522f085f5e3a..a2f119b65ca4a4b51f7dee2e44edcf1457ec4bd7 100644 (file)
@@ -164,7 +164,8 @@ trait TestFileCreationTrait {
     }
 
     // Create filename.
-    file_put_contents('public://' . $filename . '.txt', $text);
+    $filename = 'public://' . $filename . '.txt';
+    file_put_contents($filename, $text);
     return $filename;
   }