From b5ee41544be4a30028c0f7f28e515ca9eb0e20aa Mon Sep 17 00:00:00 2001 From: Danny Verkade Date: Sat, 26 Aug 2017 13:24:04 +0200 Subject: [PATCH 1/3] - Expanded to ReadInterface to include the readAll function, since a class implementing the ReadInterface should have this function in order to substitute the Read class. - Removed comment variable declarations from other file where the type is declared. This was necessary due to the missing function in the interface. Autocompleting this function now works properly, so these comments can be removed. --- .../Magento/Email/Model/Template/Config/FileIterator.php | 1 - app/code/Magento/Translation/Model/Js/DataProvider.php | 1 - lib/internal/Magento/Framework/Config/FileIterator.php | 1 - .../Magento/Framework/Filesystem/File/ReadInterface.php | 9 +++++++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/Email/Model/Template/Config/FileIterator.php b/app/code/Magento/Email/Model/Template/Config/FileIterator.php index d71542e147bc8..66846bbea4ca9 100644 --- a/app/code/Magento/Email/Model/Template/Config/FileIterator.php +++ b/app/code/Magento/Email/Model/Template/Config/FileIterator.php @@ -47,7 +47,6 @@ public function current() ); } - /** @var \Magento\Framework\Filesystem\File\Read $fileRead */ $fileRead = $this->fileReadFactory->create($this->key(), DriverPool::FILE); $contents = $fileRead->readAll(); return str_replace('