<NME> EditResponse.php
<BEF> <?php

namespace Concrete\Core\File;

use Concrete\Core\Application\EditResponse as CoreEditResponse;
use Concrete\Core\Entity\File\File as FileEntity;

/**
 * The result of file import.
 */
class EditResponse extends CoreEditResponse
{
    /**
     * The added/modified file versions.
     *
     * @var \Concrete\Core\Entity\File\File[]|\Concrete\Core\Entity\File\Version[]
     */
    protected $files = [];

    /**
     * Add a file to the added/modified file list.
     *
     * @param \Concrete\Core\Entity\File\File $file
     *
     * @return $this
     */
    public function setFile(FileEntity $file)
    {
        $this->files[] = $file->getRecentVersion();

        return $this;
    }

    /**
     * Set the added/modified file list.
     *
     * @param \Concrete\Core\Entity\File\File[]|\Concrete\Core\Entity\File\Version[] $files
     *
     * @return $this
     */
    public function setFiles($files)
    {
        $this->files = $files;

        return $this;
    }

    /**
     * {@inheritdoc}
     *
     * @see \Concrete\Core\Application\EditResponse::getJSONObject()
     */
    public function getJSONObject()
    {
        $o = parent::getBaseJSONObject();
        foreach ($this->files as $file) {
            $o->files[] = $file->getJSONObject();
        }

        return $o;
    }
}

<MSG> Restore the original code that sets the file of File\EditResponse

<DFF> @@ -26,7 +26,7 @@ class EditResponse extends CoreEditResponse
      */
     public function setFile(FileEntity $file)
     {
-        $this->files[] = $file->getRecentVersion();
+        $this->files[] = $file;
 
         return $this;
     }

{'addition_count': 1, 'commit_subject': 'Restore the original code that sets the file of File\\EditResponse', 'deletion_count': 1, 'file_extension': '.php', 'lang': 'php', 'license': 'mit', 'repo_name': 'concrete5/concrete5'}