diff --git a/code/PopulateFactory.php b/code/PopulateFactory.php index dfb36f5..dcd31bf 100644 --- a/code/PopulateFactory.php +++ b/code/PopulateFactory.php @@ -248,7 +248,7 @@ private function populateFile($data) $hash = $existingObj->File->getHash(); if (hash_equals($hash, sha1(file_get_contents($fixtureFilePath)))) { - return true; + return $file; } } else { // Create instance of file data object based on the extension of the fixture file